From a2dfc07be586c8141cf711b1b2a34aeffa780d16 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 9 Jun 2023 09:45:55 -0400 Subject: [PATCH] [LTR] Implement Theoden, King of Rohan --- .../src/mage/cards/t/TheodenKingOfRohan.java | 51 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TheodenKingOfRohan.java diff --git a/Mage.Sets/src/mage/cards/t/TheodenKingOfRohan.java b/Mage.Sets/src/mage/cards/t/TheodenKingOfRohan.java new file mode 100644 index 0000000000..f06ae27cc8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheodenKingOfRohan.java @@ -0,0 +1,51 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.DoubleStrikeAbility; +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.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TheodenKingOfRohan extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.HUMAN, "Human"); + + public TheodenKingOfRohan(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{W}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.NOBLE); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Whenever Theoden, King of Rohan or another Human enters the battlefield under your control, target creature gains double strike until end of turn. + Ability ability = new EntersBattlefieldThisOrAnotherTriggeredAbility( + new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance()), + filter, false, true + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private TheodenKingOfRohan(final TheodenKingOfRohan card) { + super(card); + } + + @Override + public TheodenKingOfRohan copy() { + return new TheodenKingOfRohan(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index c9f01225b4..f810b96d96 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -147,6 +147,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("The Mouth of Sauron", 216, Rarity.UNCOMMON, mage.cards.t.TheMouthOfSauron.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("Theoden, King of Rohan", 233, Rarity.UNCOMMON, mage.cards.t.TheodenKingOfRohan.class)); 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("Took Reaper", 35, Rarity.COMMON, mage.cards.t.TookReaper.class));