From ab0505b1b64f39dc35a3b9ad1a07c6b72b7aa711 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 28 Oct 2022 08:19:06 -0400 Subject: [PATCH] [BRO] Implemented Ashnod's Harvester --- .../src/mage/cards/a/AshnodsHarvester.java | 46 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AshnodsHarvester.java diff --git a/Mage.Sets/src/mage/cards/a/AshnodsHarvester.java b/Mage.Sets/src/mage/cards/a/AshnodsHarvester.java new file mode 100644 index 00000000000..5add1e8a560 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AshnodsHarvester.java @@ -0,0 +1,46 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.abilities.keyword.UnearthAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetCardInGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AshnodsHarvester extends CardImpl { + + public AshnodsHarvester(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}"); + + this.subtype.add(SubType.CONSTRUCT); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // Whenever Ashnod's Harvester attacks, exile target card from a graveyard. + Ability ability = new AttacksTriggeredAbility(new ExileTargetEffect()); + ability.addTarget(new TargetCardInGraveyard()); + this.addAbility(ability); + + // Unearth {1}{B} + this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{1}{B}"))); + } + + private AshnodsHarvester(final AshnodsHarvester card) { + super(card); + } + + @Override + public AshnodsHarvester copy() { + return new AshnodsHarvester(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index ca2f27f0ff0..81b073705da 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -20,6 +20,7 @@ public final class TheBrothersWar extends ExpansionSet { this.blockName = "The Brothers' War"; this.hasBoosters = false; // temporary + cards.add(new SetCardInfo("Ashnod's Harvester", 117, Rarity.UNCOMMON, mage.cards.a.AshnodsHarvester.class)); cards.add(new SetCardInfo("Battlefield Forge", 257, Rarity.RARE, mage.cards.b.BattlefieldForge.class)); cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class)); cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));