From a947df939f99a328f8d97b1aef0921ae5ac10ed6 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Sep 2020 20:43:35 -0400 Subject: [PATCH] [ZNR] Implemented Sure-Footed Infiltrator --- .../mage/cards/s/SureFootedInfiltrator.java | 59 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SureFootedInfiltrator.java diff --git a/Mage.Sets/src/mage/cards/s/SureFootedInfiltrator.java b/Mage.Sets/src/mage/cards/s/SureFootedInfiltrator.java new file mode 100644 index 00000000000..8c431974081 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SureFootedInfiltrator.java @@ -0,0 +1,59 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapTargetCost; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.permanent.AnotherPredicate; +import mage.filter.predicate.permanent.TappedPredicate; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SureFootedInfiltrator extends CardImpl { + + private static final FilterControlledPermanent filter + = new FilterControlledPermanent(SubType.ROGUE, "another untapped Rogue you control"); + + static { + filter.add(AnotherPredicate.instance); + filter.add(Predicates.not(TappedPredicate.instance)); + } + + public SureFootedInfiltrator(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}"); + + this.subtype.add(SubType.MERFOLK); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Tap another untapped Rogue you control: Sure-Footed Infiltrator can't be blocked this turn. + this.addAbility(new SimpleActivatedAbility( + new CantBeBlockedSourceEffect(), new TapTargetCost(new TargetControlledPermanent(filter)) + )); + + // Whenever Sure-Footed Infiltrator deals combat damage to a player, draw a card. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1), false)); + } + + private SureFootedInfiltrator(final SureFootedInfiltrator card) { + super(card); + } + + @Override + public SureFootedInfiltrator copy() { + return new SureFootedInfiltrator(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 31cd240b0a3..d1d0da1ed34 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -203,6 +203,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Spitfire Lagac", 167, Rarity.COMMON, mage.cards.s.SpitfireLagac.class)); cards.add(new SetCardInfo("Spoils of Adventure", 237, Rarity.UNCOMMON, mage.cards.s.SpoilsOfAdventure.class)); cards.add(new SetCardInfo("Subtle Strike", 128, Rarity.COMMON, mage.cards.s.SubtleStrike.class)); + cards.add(new SetCardInfo("Sure-Footed Infiltrator", 83, Rarity.UNCOMMON, mage.cards.s.SureFootedInfiltrator.class)); cards.add(new SetCardInfo("Swamp", 272, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Tajuru Blightblade", 208, Rarity.COMMON, mage.cards.t.TajuruBlightblade.class)); cards.add(new SetCardInfo("Tajuru Snarecaster", 210, Rarity.COMMON, mage.cards.t.TajuruSnarecaster.class));