mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[NEC] Implemented Impostor Mech
This commit is contained in:
parent
0694fd3ef7
commit
376220590c
2 changed files with 61 additions and 0 deletions
60
Mage.Sets/src/mage/cards/i/ImposterMech.java
Normal file
60
Mage.Sets/src/mage/cards/i/ImposterMech.java
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.effects.common.CopyPermanentEffect;
|
||||
import mage.abilities.keyword.CrewAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.util.functions.CopyApplier;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ImposterMech extends CardImpl {
|
||||
|
||||
private static final CopyApplier applier = new CopyApplier() {
|
||||
@Override
|
||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID targetObjectId) {
|
||||
blueprint.removeAllCardTypes(game);
|
||||
blueprint.addCardType(game, CardType.ARTIFACT);
|
||||
blueprint.addSubType(game, SubType.VEHICLE);
|
||||
blueprint.getAbilities().add(new CrewAbility(3));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
public ImposterMech(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.VEHICLE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// You may have Imposter Mech enter the battlefield as a copy of a creature an opponent controls, except its a Vehicle artifact with crew 3 and it loses all other card types.
|
||||
this.addAbility(new EntersBattlefieldAbility(new CopyPermanentEffect(
|
||||
StaticFilters.FILTER_OPPONENTS_PERMANENT_A_CREATURE, applier
|
||||
).setText("You may have {this} enter the battlefield as a copy of a creature an opponent controls, " +
|
||||
"except its a Vehicle artifact with crew 3 and it loses all other card types.")));
|
||||
|
||||
// Crew 3
|
||||
this.addAbility(new CrewAbility(3));
|
||||
}
|
||||
|
||||
private ImposterMech(final ImposterMech card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImposterMech copy() {
|
||||
return new ImposterMech(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -68,6 +68,7 @@ public final class NeonDynastyCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gruul Turf", 170, Rarity.UNCOMMON, mage.cards.g.GruulTurf.class));
|
||||
cards.add(new SetCardInfo("Hanna, Ship's Navigator", 139, Rarity.RARE, mage.cards.h.HannaShipsNavigator.class));
|
||||
cards.add(new SetCardInfo("Hunter's Insight", 119, Rarity.UNCOMMON, mage.cards.h.HuntersInsight.class));
|
||||
cards.add(new SetCardInfo("Imposter Mech", 13, Rarity.RARE, mage.cards.i.ImposterMech.class));
|
||||
cards.add(new SetCardInfo("Indomitable Archangel", 85, Rarity.MYTHIC, mage.cards.i.IndomitableArchangel.class));
|
||||
cards.add(new SetCardInfo("Ironsoul Enforcer", 7, Rarity.RARE, mage.cards.i.IronsoulEnforcer.class));
|
||||
cards.add(new SetCardInfo("Jace, Architect of Thought", 93, Rarity.MYTHIC, mage.cards.j.JaceArchitectOfThought.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue