From a5e3c824e3395df6f3d0fd26c98385de2681ae68 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Wed, 31 May 2023 09:35:09 -0400 Subject: [PATCH] [LTR] Implement The Balrog, Flame of Udun --- .../mage/cards/t/TheBalrogFlameOfUdun.java | 54 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TheBalrogFlameOfUdun.java diff --git a/Mage.Sets/src/mage/cards/t/TheBalrogFlameOfUdun.java b/Mage.Sets/src/mage/cards/t/TheBalrogFlameOfUdun.java new file mode 100644 index 0000000000..8f654628e3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheBalrogFlameOfUdun.java @@ -0,0 +1,54 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.DiesCreatureTriggeredAbility; +import mage.abilities.effects.common.PutOnLibrarySourceEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterOpponentsCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TheBalrogFlameOfUdun extends CardImpl { + + private static final FilterPermanent filter = new FilterOpponentsCreaturePermanent(); + + static { + filter.add(SuperType.LEGENDARY.getPredicate()); + } + + public TheBalrogFlameOfUdun(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.AVATAR); + this.subtype.add(SubType.DEMON); + this.power = new MageInt(7); + this.toughness = new MageInt(7); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // When a legendary creature an opponent controls dies, put The Balrog, Flame of Udun on the bottom of its owner's library. + this.addAbility(new DiesCreatureTriggeredAbility( + new PutOnLibrarySourceEffect(false), false, filter + ).setTriggerPhrase("When a legendary creature an opponent controls dies, ")); + } + + private TheBalrogFlameOfUdun(final TheBalrogFlameOfUdun card) { + super(card); + } + + @Override + public TheBalrogFlameOfUdun copy() { + return new TheBalrogFlameOfUdun(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index fe4c8b8673..7df6edbfcd 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -65,6 +65,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Stew the Coneys", 189, Rarity.UNCOMMON, mage.cards.s.StewTheConeys.class)); cards.add(new SetCardInfo("Swamp", 266, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Swarming of Moria", 150, Rarity.COMMON, mage.cards.s.SwarmingOfMoria.class)); + cards.add(new SetCardInfo("The Balrog, Flame of Udun", 395, Rarity.RARE, mage.cards.t.TheBalrogFlameOfUdun.class)); cards.add(new SetCardInfo("The One Ring", 246, Rarity.MYTHIC, mage.cards.t.TheOneRing.class)); cards.add(new SetCardInfo("The Shire", 260, Rarity.RARE, mage.cards.t.TheShire.class)); cards.add(new SetCardInfo("Tom Bombadil", 234, Rarity.MYTHIC, mage.cards.t.TomBombadil.class));