From b4b7a937eb107713152dfcd32777c7f6104c6b54 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Feb 2022 09:28:46 -0500 Subject: [PATCH] [NEO] Implemented Prodigy's Prototype --- .../src/mage/cards/p/ProdigysPrototype.java | 47 +++++++++++++++++++ .../src/mage/sets/KamigawaNeonDynasty.java | 1 + .../mage/game/permanent/token/PilotToken.java | 29 ++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/ProdigysPrototype.java create mode 100644 Mage/src/main/java/mage/game/permanent/token/PilotToken.java diff --git a/Mage.Sets/src/mage/cards/p/ProdigysPrototype.java b/Mage.Sets/src/mage/cards/p/ProdigysPrototype.java new file mode 100644 index 00000000000..12ab190664d --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/ProdigysPrototype.java @@ -0,0 +1,47 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.AttacksWithCreaturesTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.CrewAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterCreaturePermanent; +import mage.game.permanent.token.PilotToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ProdigysPrototype extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.VEHICLE, ""); + + public ProdigysPrototype(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}{U}"); + + this.subtype.add(SubType.VEHICLE); + this.power = new MageInt(3); + this.toughness = new MageInt(4); + + // Whenever one or more Vehicles you control attack, create a 1/1 colorless Pilot creature token with "This creature crews Vehicles as though its power were 2 greater." + this.addAbility(new AttacksWithCreaturesTriggeredAbility( + new CreateTokenEffect(new PilotToken()), 1, filter + ).setTriggerPhrase("Whenever one or more Vehicles you control attack, ")); + + // Crew 2 + this.addAbility(new CrewAbility(2)); + } + + private ProdigysPrototype(final ProdigysPrototype card) { + super(card); + } + + @Override + public ProdigysPrototype copy() { + return new ProdigysPrototype(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index f97e178188e..99613c2a6f9 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -85,6 +85,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Nezumi Prowler", 116, Rarity.UNCOMMON, mage.cards.n.NezumiProwler.class)); cards.add(new SetCardInfo("Plains", 283, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Portrait of Michiko", 29, Rarity.UNCOMMON, mage.cards.p.PortraitOfMichiko.class)); + cards.add(new SetCardInfo("Prodigy's Prototype", 231, Rarity.UNCOMMON, mage.cards.p.ProdigysPrototype.class)); cards.add(new SetCardInfo("Raiyuu, Storm's Edge", 232, Rarity.RARE, mage.cards.r.RaiyuuStormsEdge.class)); cards.add(new SetCardInfo("Satoru Umezawa", 234, Rarity.RARE, mage.cards.s.SatoruUmezawa.class)); cards.add(new SetCardInfo("Satsuki, the Living Lore", 235, Rarity.RARE, mage.cards.s.SatsukiTheLivingLore.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/PilotToken.java b/Mage/src/main/java/mage/game/permanent/token/PilotToken.java new file mode 100644 index 00000000000..2f921839c8b --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/PilotToken.java @@ -0,0 +1,29 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.common.CrewIncreasedPowerAbility; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class PilotToken extends TokenImpl { + + public PilotToken() { + super("Pilot token", "1/1 colorless Pilot creature token with \"This creature crews Vehicles as though its power were 2 greater.\""); + cardType.add(CardType.CREATURE); + subtype.add(SubType.PILOT); + power = new MageInt(1); + toughness = new MageInt(1); + addAbility(new CrewIncreasedPowerAbility("this creature")); + } + + public PilotToken(final PilotToken token) { + super(token); + } + + public PilotToken copy() { + return new PilotToken(this); + } +}