From c4e5182640eed1bffc7901b3c2b1a0c38f2643a9 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 27 May 2019 18:21:30 -0400 Subject: [PATCH] Implemented Ingenious Infiltrator --- .../mage/cards/i/IngeniousInfiltrator.java | 52 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 53 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/IngeniousInfiltrator.java diff --git a/Mage.Sets/src/mage/cards/i/IngeniousInfiltrator.java b/Mage.Sets/src/mage/cards/i/IngeniousInfiltrator.java new file mode 100644 index 0000000000..9ce8fe1955 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IngeniousInfiltrator.java @@ -0,0 +1,52 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.NinjutsuAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SetTargetPointer; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IngeniousInfiltrator extends CardImpl { + + private static final FilterPermanent filter + = new FilterControlledCreaturePermanent(SubType.NINJA, "a Ninja you control"); + + public IngeniousInfiltrator(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{B}"); + + this.subtype.add(SubType.VEDALKEN); + this.subtype.add(SubType.NINJA); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Ninjutsu {U}{B} + this.addAbility(new NinjutsuAbility(new ManaCostsImpl("{1}{U}"))); + + // Whenever a Ninja you control deals combat damage to a player, draw a card. + this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility( + new DrawCardSourceControllerEffect(1), filter, + false, SetTargetPointer.NONE, true + )); + } + + private IngeniousInfiltrator(final IngeniousInfiltrator card) { + super(card); + } + + @Override + public IngeniousInfiltrator copy() { + return new IngeniousInfiltrator(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 20496969a3..404a7dede3 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -81,6 +81,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Hollowhead Sliver", 132, Rarity.UNCOMMON, mage.cards.h.HollowheadSliver.class)); cards.add(new SetCardInfo("Ice-Fang Coatl", 203, Rarity.RARE, mage.cards.i.IceFangCoatl.class)); cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class)); + cards.add(new SetCardInfo("Ingenious Infiltrator", 204, Rarity.UNCOMMON, mage.cards.i.IngeniousInfiltrator.class)); cards.add(new SetCardInfo("Kess, Dissident Mage", 206, Rarity.MYTHIC, mage.cards.k.KessDissidentMage.class)); cards.add(new SetCardInfo("King of the Pride", 16, Rarity.UNCOMMON, mage.cards.k.KingOfThePride.class)); cards.add(new SetCardInfo("Lava Dart", 134, Rarity.COMMON, mage.cards.l.LavaDart.class));