mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[DFT] Implement Interface Ace
This commit is contained in:
parent
4b5bf3e1de
commit
7df1499108
2 changed files with 68 additions and 0 deletions
67
Mage.Sets/src/mage/cards/i/InterfaceAce.java
Normal file
67
Mage.Sets/src/mage/cards/i/InterfaceAce.java
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||
import mage.abilities.common.CrewSaddleWithToughnessAbility;
|
||||
import mage.abilities.effects.common.UntapSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class InterfaceAce extends CardImpl {
|
||||
|
||||
public InterfaceAce(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{W}");
|
||||
|
||||
this.subtype.add(SubType.ROBOT);
|
||||
this.subtype.add(SubType.PILOT);
|
||||
this.power = new MageInt(0);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// This creature saddles Mounts and crews Vehicles using its toughness rather than its power.
|
||||
this.addAbility(CrewSaddleWithToughnessAbility.getInstance());
|
||||
|
||||
// Whenever this creature becomes tapped during your turn, untap it. This ability triggers only once each turn.
|
||||
this.addAbility(new InterfaceAceTriggeredAbility());
|
||||
}
|
||||
|
||||
private InterfaceAce(final InterfaceAce card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InterfaceAce copy() {
|
||||
return new InterfaceAce(this);
|
||||
}
|
||||
}
|
||||
|
||||
class InterfaceAceTriggeredAbility extends BecomesTappedSourceTriggeredAbility {
|
||||
|
||||
InterfaceAceTriggeredAbility() {
|
||||
super(new UntapSourceEffect().setText("untap it"));
|
||||
setTriggerPhrase("Whenever this creature becomes tapped during your turn, ");
|
||||
setTriggersLimitEachTurn(1);
|
||||
}
|
||||
|
||||
private InterfaceAceTriggeredAbility(final InterfaceAceTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InterfaceAceTriggeredAbility copy() {
|
||||
return new InterfaceAceTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return game.isActivePlayer(getControllerId()) && super.checkTrigger(event, game);
|
||||
}
|
||||
}
|
||||
|
|
@ -47,6 +47,7 @@ public final class Aetherdrift extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Endrider Catalyzer", 124, Rarity.COMMON, mage.cards.e.EndriderCatalyzer.class));
|
||||
cards.add(new SetCardInfo("Forest", 289, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Hulldrifter", 47, Rarity.COMMON, mage.cards.h.Hulldrifter.class));
|
||||
cards.add(new SetCardInfo("Interface Ace", 17, Rarity.COMMON, mage.cards.i.InterfaceAce.class));
|
||||
cards.add(new SetCardInfo("Island", 280, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jungle Hollow", 256, Rarity.COMMON, mage.cards.j.JungleHollow.class));
|
||||
cards.add(new SetCardInfo("Lagorin, Soul of Alacria", 211, Rarity.UNCOMMON, mage.cards.l.LagorinSoulOfAlacria.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue