From 0d551cd8beb23b0271f857d439e00991f182a8d3 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 9 Jun 2023 20:36:31 -0400 Subject: [PATCH] [LTR] Implement Inherited Envelope --- .../src/mage/cards/i/InheritedEnvelope.java | 36 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/InheritedEnvelope.java diff --git a/Mage.Sets/src/mage/cards/i/InheritedEnvelope.java b/Mage.Sets/src/mage/cards/i/InheritedEnvelope.java new file mode 100644 index 00000000000..eb777ef29e5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/InheritedEnvelope.java @@ -0,0 +1,36 @@ +package mage.cards.i; + +import java.util.UUID; + +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.keyword.TheRingTemptsYouEffect; +import mage.abilities.mana.AnyColorManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +/** + * + * @author TheElk801 + */ +public final class InheritedEnvelope extends CardImpl { + + public InheritedEnvelope(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); + + // When Inherited Envelope enters the battlefield, the Ring tempts you. + this.addAbility(new EntersBattlefieldTriggeredAbility(new TheRingTemptsYouEffect())); + + // {T}: Add one mana of any color. + this.addAbility(new AnyColorManaAbility()); + } + + private InheritedEnvelope(final InheritedEnvelope card) { + super(card); + } + + @Override + public InheritedEnvelope copy() { + return new InheritedEnvelope(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index bf09c832af8..3234f0d6d43 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -91,6 +91,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Horn of Gondor", 240, Rarity.RARE, mage.cards.h.HornOfGondor.class)); cards.add(new SetCardInfo("Horses of the Bruinen", 55, Rarity.UNCOMMON, mage.cards.h.HorsesOfTheBruinen.class)); cards.add(new SetCardInfo("Improvised Club", 137, Rarity.COMMON, mage.cards.i.ImprovisedClub.class)); + cards.add(new SetCardInfo("Inherited Envelope", 242, Rarity.COMMON, mage.cards.i.InheritedEnvelope.class)); cards.add(new SetCardInfo("Ioreth of the Healing House", 56, Rarity.UNCOMMON, mage.cards.i.IorethOfTheHealingHouse.class)); cards.add(new SetCardInfo("Isildur's Fateful Strike", 91, Rarity.RARE, mage.cards.i.IsildursFatefulStrike.class)); cards.add(new SetCardInfo("Island", 264, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));