From 0fc77855ecb361897d2964c6196f5493b09d4a45 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sat, 3 Jun 2023 10:18:32 -0400 Subject: [PATCH] [LTR] Implement Treason of Isengard --- .../src/mage/cards/t/TreasonOfIsengard.java | 40 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TreasonOfIsengard.java diff --git a/Mage.Sets/src/mage/cards/t/TreasonOfIsengard.java b/Mage.Sets/src/mage/cards/t/TreasonOfIsengard.java new file mode 100644 index 0000000000..14a359fa75 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TreasonOfIsengard.java @@ -0,0 +1,40 @@ +package mage.cards.t; + +import mage.abilities.effects.common.PutOnLibraryTargetEffect; +import mage.abilities.effects.keyword.AmassEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TreasonOfIsengard extends CardImpl { + + public TreasonOfIsengard(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{U}"); + + // Put up to one target instant or sorcery card from your graveyard on top of your library. + this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true)); + this.getSpellAbility().addTarget(new TargetCardInYourGraveyard( + 0, 1, StaticFilters.FILTER_CARD_INSTANT_OR_SORCERY_FROM_YOUR_GRAVEYARD + )); + + // Amass Orcs 2. + this.getSpellAbility().addEffect(new AmassEffect(2, SubType.ORC)); + } + + private TreasonOfIsengard(final TreasonOfIsengard card) { + super(card); + } + + @Override + public TreasonOfIsengard copy() { + return new TreasonOfIsengard(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index 7dfca6cf1b..236c563b6e 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -110,6 +110,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("There and Back Again", 151, Rarity.RARE, mage.cards.t.ThereAndBackAgain.class)); cards.add(new SetCardInfo("Tom Bombadil", 234, Rarity.MYTHIC, mage.cards.t.TomBombadil.class)); cards.add(new SetCardInfo("Trailblazer's Boots", 398, Rarity.RARE, mage.cards.t.TrailblazersBoots.class)); + cards.add(new SetCardInfo("Treason of Isengard", 74, Rarity.COMMON, mage.cards.t.TreasonOfIsengard.class)); cards.add(new SetCardInfo("Troll of Khazad-dum", 111, Rarity.COMMON, mage.cards.t.TrollOfKhazadDum.class)); cards.add(new SetCardInfo("War of the Last Alliance", 36, Rarity.RARE, mage.cards.w.WarOfTheLastAlliance.class)); cards.add(new SetCardInfo("Westfold Rider", 37, Rarity.COMMON, mage.cards.w.WestfoldRider.class));