From e5aaed716fea1a6acb0f5eae77a06a4bbc2ef682 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Wed, 31 May 2023 08:22:22 -0400 Subject: [PATCH] [LTR] Implement Aragorn, the Uniter --- .../src/mage/cards/a/AragornTheUniter.java | 83 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 84 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AragornTheUniter.java diff --git a/Mage.Sets/src/mage/cards/a/AragornTheUniter.java b/Mage.Sets/src/mage/cards/a/AragornTheUniter.java new file mode 100644 index 0000000000..ea5c9e7fa1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AragornTheUniter.java @@ -0,0 +1,83 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.ObjectColor; +import mage.abilities.Ability; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.ColorPredicate; +import mage.game.permanent.token.HumanSoldierToken; +import mage.target.common.TargetCreaturePermanent; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AragornTheUniter extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("a white spell"); + private static final FilterSpell filter2 = new FilterSpell("a blue spell"); + private static final FilterSpell filter3 = new FilterSpell("a red spell"); + private static final FilterSpell filter4 = new FilterSpell("a green spell"); + + static { + filter.add(new ColorPredicate(ObjectColor.WHITE)); + filter2.add(new ColorPredicate(ObjectColor.BLUE)); + filter3.add(new ColorPredicate(ObjectColor.RED)); + filter4.add(new ColorPredicate(ObjectColor.GREEN)); + } + + public AragornTheUniter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{G}{W}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.NOBLE); + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + // Whenever you cast a white spell, create a 1/1 white Human Soldier creature token. + this.addAbility(new SpellCastControllerTriggeredAbility( + new CreateTokenEffect(new HumanSoldierToken()), filter, false + )); + + // Whenever you cast a blue spell, scry 2. + this.addAbility(new SpellCastControllerTriggeredAbility( + new ScryEffect(2, false), filter2, false + )); + + // Whenever you cast a red spell, Aragorn, the Uniter deals 3 damage to target opponent. + Ability ability = new SpellCastControllerTriggeredAbility( + new DamageTargetEffect(3), filter3, false + ); + ability.addTarget(new TargetOpponent()); + this.addAbility(ability); + + // Whenever you cast a green spell, target creature gets +4/+4 until end of turn. + ability = new SpellCastControllerTriggeredAbility( + new BoostTargetEffect(4, 4), filter4, false + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private AragornTheUniter(final AragornTheUniter card) { + super(card); + } + + @Override + public AragornTheUniter copy() { + return new AragornTheUniter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index ef18c94ea4..0ef2833847 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -19,6 +19,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { this.hasBoosters = false; // temporary cards.add(new SetCardInfo("Aragorn and Arwen, Wed", 287, Rarity.MYTHIC, mage.cards.a.AragornAndArwenWed.class)); + cards.add(new SetCardInfo("Aragorn, the Uniter", 192, Rarity.MYTHIC, mage.cards.a.AragornTheUniter.class)); cards.add(new SetCardInfo("Arwen's Gift", 39, Rarity.COMMON, mage.cards.a.ArwensGift.class)); cards.add(new SetCardInfo("Bilbo, Retired Burglar", 196, Rarity.UNCOMMON, mage.cards.b.BilboRetiredBurglar.class)); cards.add(new SetCardInfo("Call of the Ring", 79, Rarity.RARE, mage.cards.c.CallOfTheRing.class));