From a67d5ceee1177994bd9ef459c5ee263b8e72e29f Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sun, 7 May 2023 09:00:47 -0400 Subject: [PATCH] [LTR] Implement Bilbo, Retired Burglar --- .../src/mage/cards/b/BilboRetiredBurglar.java | 46 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BilboRetiredBurglar.java diff --git a/Mage.Sets/src/mage/cards/b/BilboRetiredBurglar.java b/Mage.Sets/src/mage/cards/b/BilboRetiredBurglar.java new file mode 100644 index 0000000000..b931b818ad --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BilboRetiredBurglar.java @@ -0,0 +1,46 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; +import mage.abilities.common.EntersBattlefieldOrLeavesSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.keyword.TheRingTemptsYouEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BilboRetiredBurglar extends CardImpl { + + public BilboRetiredBurglar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{R}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HALFLING); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // When Bilbo, Retired Burglar enters or leaves the battlefield, the Ring tempts you. + this.addAbility(new EntersBattlefieldOrLeavesSourceTriggeredAbility(new TheRingTemptsYouEffect(), false)); + + // Whenever Bilbo deals combat damage to a player, create a Treasure token. + this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new CreateTokenEffect(new TreasureToken()), false)); + } + + private BilboRetiredBurglar(final BilboRetiredBurglar card) { + super(card); + } + + @Override + public BilboRetiredBurglar copy() { + return new BilboRetiredBurglar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index c2e3cbeea9..89c04ad1b8 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -23,6 +23,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { this.hasBoosters = false; // temporary cards.add(new SetCardInfo("Aragorn and Arwen, Wed", 287, Rarity.MYTHIC, mage.cards.a.AragornAndArwenWed.class)); + cards.add(new SetCardInfo("Bilbo, Retired Burglar", 403, Rarity.UNCOMMON, mage.cards.b.BilboRetiredBurglar.class)); cards.add(new SetCardInfo("Forest", 280, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Frodo, Sauron's Bane", 18, Rarity.RARE, mage.cards.f.FrodoSauronsBane.class)); cards.add(new SetCardInfo("Gandalf the Grey", 207, Rarity.RARE, mage.cards.g.GandalfTheGrey.class));