mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[WHO] Implement The Ninth Doctor
This commit is contained in:
parent
fc1556b8be
commit
1e482ece12
2 changed files with 78 additions and 0 deletions
75
Mage.Sets/src/mage/cards/t/TheNinthDoctor.java
Normal file
75
Mage.Sets/src/mage/cards/t/TheNinthDoctor.java
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.condition.common.IsStepCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.InspiredAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.turn.TurnMod;
|
||||
import mage.game.turn.UpkeepStep;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author PurpleCrowbar
|
||||
*/
|
||||
public final class TheNinthDoctor extends CardImpl {
|
||||
|
||||
public TheNinthDoctor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{R}");
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.TIME_LORD, SubType.DOCTOR);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Into the TARDIS — Whenever The Ninth Doctor becomes untapped during your untap step, you get an additional upkeep step after this step.
|
||||
TriggeredAbilityImpl ability = new InspiredAbility(new TheNinthDoctorEffect(), false, false).setTriggerPhrase("Whenever {this} becomes untapped during your untap step, ");
|
||||
ability.withFlavorWord("Into the TARDIS");
|
||||
this.addAbility(new ConditionalTriggeredAbility(ability, new IsStepCondition(PhaseStep.UNTAP), ""));
|
||||
}
|
||||
|
||||
private TheNinthDoctor(final TheNinthDoctor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheNinthDoctor copy() {
|
||||
return new TheNinthDoctor(this);
|
||||
}
|
||||
}
|
||||
|
||||
class TheNinthDoctorEffect extends OneShotEffect {
|
||||
|
||||
TheNinthDoctorEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "you get an additional upkeep step after this step";
|
||||
}
|
||||
|
||||
private TheNinthDoctorEffect(final TheNinthDoctorEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheNinthDoctorEffect copy() {
|
||||
return new TheNinthDoctorEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
UUID playerId = source.getControllerId();
|
||||
if (playerId != null) {
|
||||
game.getState().getTurnMods().add(new TurnMod(playerId).withExtraStep(new UpkeepStep()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -194,6 +194,9 @@ public final class DoctorWho extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Dalek Emperor", 120, Rarity.RARE, mage.cards.t.TheDalekEmperor.class));
|
||||
cards.add(new SetCardInfo("The Eleventh Hour", 41, Rarity.RARE, mage.cards.t.TheEleventhHour.class));
|
||||
cards.add(new SetCardInfo("The Flux", 86, Rarity.RARE, mage.cards.t.TheFlux.class));
|
||||
cards.add(new SetCardInfo("The Ninth Doctor", 148, Rarity.RARE, mage.cards.t.TheNinthDoctor.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Ninth Doctor", 432, Rarity.RARE, mage.cards.t.TheNinthDoctor.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Ninth Doctor", 560, Rarity.RARE, mage.cards.t.TheNinthDoctor.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Sixth Doctor", 159, Rarity.RARE, mage.cards.t.TheSixthDoctor.class));
|
||||
cards.add(new SetCardInfo("The Thirteenth Doctor", 4, Rarity.MYTHIC, mage.cards.t.TheThirteenthDoctor.class));
|
||||
cards.add(new SetCardInfo("The Valeyard", 165, Rarity.RARE, mage.cards.t.TheValeyard.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue