From f6b9c64c5576291aaeb3a4075a9e64de988fcf80 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 6 Jul 2021 19:54:48 -0400 Subject: [PATCH] [AFR] Implemented Hoard Robber --- Mage.Sets/src/mage/cards/h/HoardRobber.java | 41 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HoardRobber.java diff --git a/Mage.Sets/src/mage/cards/h/HoardRobber.java b/Mage.Sets/src/mage/cards/h/HoardRobber.java new file mode 100644 index 0000000000..b81aca35a6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HoardRobber.java @@ -0,0 +1,41 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HoardRobber extends CardImpl { + + public HoardRobber(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}"); + + this.subtype.add(SubType.TIEFLING); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // Whenever Hoard Robber deals combat damage to a player, create a Treasure token. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility( + new CreateTokenEffect(new TreasureToken()), false + )); + } + + private HoardRobber(final HoardRobber card) { + super(card); + } + + @Override + public HoardRobber copy() { + return new HoardRobber(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index cd74969518..40e55574c5 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -104,6 +104,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Hill Giant Herdgorger", 187, Rarity.COMMON, mage.cards.h.HillGiantHerdgorger.class)); cards.add(new SetCardInfo("Hired Hexblade", 109, Rarity.COMMON, mage.cards.h.HiredHexblade.class)); cards.add(new SetCardInfo("Hive of the Eye Tyrant", 258, Rarity.RARE, mage.cards.h.HiveOfTheEyeTyrant.class)); + cards.add(new SetCardInfo("Hoard Robber", 1103, Rarity.COMMON, mage.cards.h.HoardRobber.class)); cards.add(new SetCardInfo("Hoarding Ogre", 146, Rarity.COMMON, mage.cards.h.HoardingOgre.class)); cards.add(new SetCardInfo("Hobgoblin Captain", 148, Rarity.COMMON, mage.cards.h.HobgoblinCaptain.class)); cards.add(new SetCardInfo("Hulking Bugbear", 149, Rarity.UNCOMMON, mage.cards.h.HulkingBugbear.class));