forked from External/mage
[CMR] Implemented Obeka, Brute Chronologist
This commit is contained in:
parent
d1071c7982
commit
4e92e4d6e4
2 changed files with 71 additions and 0 deletions
70
Mage.Sets/src/mage/cards/o/ObekaBruteChronologist.java
Normal file
70
Mage.Sets/src/mage/cards/o/ObekaBruteChronologist.java
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ObekaBruteChronologist extends CardImpl {
|
||||
|
||||
public ObekaBruteChronologist(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{B}{R}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.OGRE);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// {T}: The player whose turn it is may end the turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new ObekaBruteChronologistEffect(), new TapSourceCost()));
|
||||
}
|
||||
|
||||
private ObekaBruteChronologist(final ObekaBruteChronologist card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObekaBruteChronologist copy() {
|
||||
return new ObekaBruteChronologist(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ObekaBruteChronologistEffect extends OneShotEffect {
|
||||
|
||||
ObekaBruteChronologistEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "the player whose turn it is may end the turn";
|
||||
}
|
||||
|
||||
private ObekaBruteChronologistEffect(final ObekaBruteChronologistEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObekaBruteChronologistEffect copy() {
|
||||
return new ObekaBruteChronologistEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(game.getActivePlayerId());
|
||||
return player != null
|
||||
&& player.chooseUse(outcome, "End the turn?", source, game)
|
||||
&& game.endTurn(source);
|
||||
}
|
||||
}
|
||||
|
|
@ -121,6 +121,7 @@ public final class CommanderLegends extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Null Caller", 140, Rarity.UNCOMMON, mage.cards.n.NullCaller.class));
|
||||
cards.add(new SetCardInfo("Numa, Joraga Chieftain", 246, Rarity.UNCOMMON, mage.cards.n.NumaJoragaChieftain.class));
|
||||
cards.add(new SetCardInfo("Nymris, Oona's Trickster", 288, Rarity.RARE, mage.cards.n.NymrisOonasTrickster.class));
|
||||
cards.add(new SetCardInfo("Obeka, Brute Chronologist", 289, Rarity.RARE, mage.cards.o.ObekaBruteChronologist.class));
|
||||
cards.add(new SetCardInfo("Omenspeaker", 83, Rarity.COMMON, mage.cards.o.Omenspeaker.class));
|
||||
cards.add(new SetCardInfo("Path of Ancestry", 353, Rarity.COMMON, mage.cards.p.PathOfAncestry.class));
|
||||
cards.add(new SetCardInfo("Patron of the Valiant", 37, Rarity.UNCOMMON, mage.cards.p.PatronOfTheValiant.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue