From b0aa8a98ad280f198c59b96d164a8626066a4edd Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 9 Jan 2020 15:50:29 -0500 Subject: [PATCH] Implemented Mindwrack Harpy --- .../src/mage/cards/m/MindwrackHarpy.java | 45 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MindwrackHarpy.java diff --git a/Mage.Sets/src/mage/cards/m/MindwrackHarpy.java b/Mage.Sets/src/mage/cards/m/MindwrackHarpy.java new file mode 100644 index 0000000000..c4f7ac1434 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MindwrackHarpy.java @@ -0,0 +1,45 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.common.BeginningOfCombatTriggeredAbility; +import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveEachPlayerEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MindwrackHarpy extends CardImpl { + + public MindwrackHarpy(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.HARPY); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // At the beginning of combat on your turn, each player puts the top three cards of their library into their graveyard. + this.addAbility(new BeginningOfCombatTriggeredAbility( + new PutTopCardOfLibraryIntoGraveEachPlayerEffect(3, TargetController.ANY), + TargetController.YOU, false + )); + } + + private MindwrackHarpy(final MindwrackHarpy card) { + super(card); + } + + @Override + public MindwrackHarpy copy() { + return new MindwrackHarpy(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 90f8b107bb..62ecd884b5 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -102,6 +102,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Leonin of the Lost Pride", 28, Rarity.COMMON, mage.cards.l.LeoninOfTheLostPride.class)); cards.add(new SetCardInfo("Mantle of the Wolf", 178, Rarity.RARE, mage.cards.m.MantleOfTheWolf.class)); cards.add(new SetCardInfo("Memory Drain", 54, Rarity.COMMON, mage.cards.m.MemoryDrain.class)); + cards.add(new SetCardInfo("Mindwrack Harpy", 276, Rarity.COMMON, mage.cards.m.MindwrackHarpy.class)); cards.add(new SetCardInfo("Mire Triton", 105, Rarity.UNCOMMON, mage.cards.m.MireTriton.class)); cards.add(new SetCardInfo("Mire's Grasp", 106, Rarity.COMMON, mage.cards.m.MiresGrasp.class)); cards.add(new SetCardInfo("Mountain", 253, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));