diff --git a/Mage.Sets/src/mage/cards/n/NightshadeHarvester.java b/Mage.Sets/src/mage/cards/n/NightshadeHarvester.java new file mode 100644 index 0000000000..c13bddcd6a --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NightshadeHarvester.java @@ -0,0 +1,53 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldAllTriggeredAbility; +import mage.abilities.effects.common.LoseLifeTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.counters.CounterType; +import mage.filter.common.FilterLandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NightshadeHarvester extends CardImpl { + + private static final FilterLandPermanent filter = new FilterLandPermanent(); + + static { + filter.add(TargetController.OPPONENT.getControllerPredicate()); + } + + public NightshadeHarvester(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.SHAMAN); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever a land enters the battlefield under an opponent's control, that player loses 1 life. Put a +1/+1 counter on Nightshade Harvester. + Ability ability = new EntersBattlefieldAllTriggeredAbility( + Zone.BATTLEFIELD, new LoseLifeTargetEffect(1), filter, false, + SetTargetPointer.PLAYER, "Whenever a land enters the battlefield under an opponent's control, " + + "that player loses 1 life. Put a +1/+1 counter on {this}." + ); + ability.addEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance())); + this.addAbility(ability); + } + + private NightshadeHarvester(final NightshadeHarvester card) { + super(card); + } + + @Override + public NightshadeHarvester copy() { + return new NightshadeHarvester(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 5e7d31c4db..a2039addbd 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -144,6 +144,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Natural Reclamation", 245, Rarity.COMMON, mage.cards.n.NaturalReclamation.class)); cards.add(new SetCardInfo("Necrotic Hex", 137, Rarity.RARE, mage.cards.n.NecroticHex.class)); cards.add(new SetCardInfo("Nekusar, the Mindrazer", 529, Rarity.MYTHIC, mage.cards.n.NekusarTheMindrazer.class)); + cards.add(new SetCardInfo("Nightshade Harvester", 138, Rarity.RARE, mage.cards.n.NightshadeHarvester.class)); cards.add(new SetCardInfo("Ninth Bridge Patrol", 33, Rarity.COMMON, mage.cards.n.NinthBridgePatrol.class)); cards.add(new SetCardInfo("Noxious Dragon", 139, Rarity.UNCOMMON, mage.cards.n.NoxiousDragon.class)); cards.add(new SetCardInfo("Null Caller", 140, Rarity.UNCOMMON, mage.cards.n.NullCaller.class));