From f2925237fba36a5d99ea52e7617927c20224872f Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sat, 3 Jun 2023 20:41:19 -0400 Subject: [PATCH] [LTR] Implement Ioreth of the Healing House --- .../mage/cards/i/IorethOfTheHealingHouse.java | 62 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/i/IorethOfTheHealingHouse.java diff --git a/Mage.Sets/src/mage/cards/i/IorethOfTheHealingHouse.java b/Mage.Sets/src/mage/cards/i/IorethOfTheHealingHouse.java new file mode 100644 index 0000000000..5e2b25c3f1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IorethOfTheHealingHouse.java @@ -0,0 +1,62 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.effects.common.UntapTargetEffect; +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.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IorethOfTheHealingHouse extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent("another target permanent"); + private static final FilterPermanent filter2 = new FilterCreaturePermanent("other target legendary creatures"); + + static { + filter.add(AnotherPredicate.instance); + filter2.add(AnotherPredicate.instance); + filter2.add(SuperType.LEGENDARY.getPredicate()); + } + + public IorethOfTheHealingHouse(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(1); + this.toughness = new MageInt(4); + + // {T}: Untap another target permanent. + Ability ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost()); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + + // {T}: Untap two other target legendary creatures. + ability = new SimpleActivatedAbility(new UntapTargetEffect(), new TapSourceCost()); + ability.addTarget(new TargetPermanent(2, filter2)); + this.addAbility(ability); + } + + private IorethOfTheHealingHouse(final IorethOfTheHealingHouse card) { + super(card); + } + + @Override + public IorethOfTheHealingHouse copy() { + return new IorethOfTheHealingHouse(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index ace08d8943..5dae39a632 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -61,6 +61,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Grond, the Gatebreaker", 89, Rarity.UNCOMMON, mage.cards.g.GrondTheGatebreaker.class)); cards.add(new SetCardInfo("Hew the Entwood", 136, Rarity.MYTHIC, mage.cards.h.HewTheEntwood.class)); cards.add(new SetCardInfo("Horn of Gondor", 240, Rarity.RARE, mage.cards.h.HornOfGondor.class)); + cards.add(new SetCardInfo("Ioreth of the Healing House", 56, Rarity.UNCOMMON, mage.cards.i.IorethOfTheHealingHouse.class)); cards.add(new SetCardInfo("Island", 264, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Knight of the Keep", 291, Rarity.COMMON, mage.cards.k.KnightOfTheKeep.class)); cards.add(new SetCardInfo("Knights of Dol Amroth", 59, Rarity.COMMON, mage.cards.k.KnightsOfDolAmroth.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 918a24cc25..da0272fd1c 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -48841,7 +48841,7 @@ Bill Ferny, Bree Swindler|The Lord of the Rings: Tales of Middle-earth|42|U|{1}{ Borne Upon a Wind|The Lord of the Rings: Tales of Middle-earth|44|R|{1}{U}|Instant|||You may cast spells this turn as though they had flash.$Draw a card.| Council's Deliberation|The Lord of the Rings: Tales of Middle-earth|48|U|{1}{U}|Instant|||Draw a card.$Whenever you scry, if you control an Island, you may exile Council's Deliberation from your graveyard. If you do, draw a card.| Gandalf, Friend of the Shire|The Lord of the Rings: Tales of Middle-earth|50|U|{3}{U}|Legendary Creature - Avatar Wizard|2|4|Flash$You may cast sorcery spells as though they had flash.$Whenever the Ring tempts you, if you chose a creature other than Gandalf, Friend of the Shire as your Ring-bearer, draw a card.| -Ioreth of the Houses of Healing|The Lord of the Rings: Tales of Middle-earth|56|U|{2}{U}|Legendary Creature - Human Cleric|1|4|{T}: Untap another target permanent.${T}: Untap two other target legendary creatures.| +Ioreth of the Healing House|The Lord of the Rings: Tales of Middle-earth|56|U|{2}{U}|Legendary Creature - Human Cleric|1|4|{T}: Untap another target permanent.${T}: Untap two other target legendary creatures.| Knights of Dol Amroth|The Lord of the Rings: Tales of Middle-earth|59|C|{3}{U}|Creature - Human Knight|3|3|Whenever you draw your second card each turn, put a +1/+1 counter on Knights of Dol Amroth.| Meneldor, Swift Savior|The Lord of the Rings: Tales of Middle-earth|62|U|{3}{U}|Legendary Creature - Bird Soldier|3|3|Flying$Whenever Meneldor, Swift Savior deals combat damage to a player, exile up to one target creature you own, then return it to the battlefield under your control.| Press the Enemy|The Lord of the Rings: Tales of Middle-earth|65|R|{2}{U}{U}|Instant|||Return target spell or nonland permanent an opponent controls to its owner's hand. You may cast an instant or sorcery spell with equal or lesser mana value from your hand without paying its mana cost.|