From f9f845cb44312958effd0d5e2d29d410cfa54258 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 2 Sep 2020 15:54:49 -0400 Subject: [PATCH] [ZNR] Implemented Prowling Felidar --- .../src/mage/cards/p/ProwlingFelidar.java | 43 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + .../abilities/common/LandfallAbility.java | 6 ++- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 Mage.Sets/src/mage/cards/p/ProwlingFelidar.java diff --git a/Mage.Sets/src/mage/cards/p/ProwlingFelidar.java b/Mage.Sets/src/mage/cards/p/ProwlingFelidar.java new file mode 100644 index 0000000000..b96b551ae3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/ProwlingFelidar.java @@ -0,0 +1,43 @@ +package mage.cards.p; + +import java.util.UUID; + +import mage.MageInt; +import mage.abilities.common.LandfallAbility; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.constants.SubType; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; + +/** + * @author TheElk801 + */ +public final class ProwlingFelidar extends CardImpl { + + public ProwlingFelidar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.CAT); + this.subtype.add(SubType.BEAST); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Vigilance + this.addAbility(VigilanceAbility.getInstance()); + + // Landfall — Whenever a land enters the battlefield under your control, put a +1/+1 counter on Prowling Felidar. + this.addAbility(new LandfallAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()))); + } + + private ProwlingFelidar(final ProwlingFelidar card) { + super(card); + } + + @Override + public ProwlingFelidar copy() { + return new ProwlingFelidar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 0db420fab5..0e3152f687 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -103,6 +103,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Orah, Skyclave Hierophant", 233, Rarity.RARE, mage.cards.o.OrahSkyclaveHierophant.class)); cards.add(new SetCardInfo("Pillarverge Pathway", 263, Rarity.RARE, mage.cards.p.PillarvergePathway.class)); cards.add(new SetCardInfo("Plains", 266, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Prowling Felidar", 34, Rarity.COMMON, mage.cards.p.ProwlingFelidar.class)); cards.add(new SetCardInfo("Riverglide Pathway", 264, Rarity.RARE, mage.cards.r.RiverglidePathway.class)); cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class)); cards.add(new SetCardInfo("Shell Shield", 79, Rarity.COMMON, mage.cards.s.ShellShield.class)); diff --git a/Mage/src/main/java/mage/abilities/common/LandfallAbility.java b/Mage/src/main/java/mage/abilities/common/LandfallAbility.java index 3718685a67..7a70ab640d 100644 --- a/Mage/src/main/java/mage/abilities/common/LandfallAbility.java +++ b/Mage/src/main/java/mage/abilities/common/LandfallAbility.java @@ -1,4 +1,3 @@ - package mage.abilities.common; import mage.abilities.TriggeredAbilityImpl; @@ -11,7 +10,6 @@ import mage.game.permanent.Permanent; import mage.target.targetpointer.FixedTarget; /** - * * @author BetaSteward_at_googlemail.com */ public class LandfallAbility extends TriggeredAbilityImpl { @@ -19,6 +17,10 @@ public class LandfallAbility extends TriggeredAbilityImpl { protected SetTargetPointer setTargetPointer; protected Permanent triggeringLand; + public LandfallAbility(Effect effect) { + this(effect, false); + } + public LandfallAbility(Effect effect, boolean optional) { this(Zone.BATTLEFIELD, effect, optional); }