From 1482e4df23831800b4e1d32b98502d51ec08f0c1 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 21 Aug 2023 21:38:56 -0400 Subject: [PATCH] [WOE] Implement Tempest Hart --- Mage.Sets/src/mage/cards/t/TempestHart.java | 59 ++++++++++++++++++++ Mage.Sets/src/mage/sets/WildsOfEldraine.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TempestHart.java diff --git a/Mage.Sets/src/mage/cards/t/TempestHart.java b/Mage.Sets/src/mage/cards/t/TempestHart.java new file mode 100644 index 00000000000..dfde6c99e55 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TempestHart.java @@ -0,0 +1,59 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.AdventureCard; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.ManaValuePredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TempestHart extends AdventureCard { + + private static final FilterSpell filter = new FilterSpell("a spell with mana value 5 or greater"); + + static { + filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 4)); + } + + public TempestHart(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.INSTANT}, "{3}{G}", "Scan the Clouds", "{1}{U}"); + + this.subtype.add(SubType.ELEMENTAL); + this.subtype.add(SubType.ELK); + this.power = new MageInt(3); + this.toughness = new MageInt(4); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Whenever you cast a spell with mana value 5 or greater, put a +1/+1 counter on Tempest Hart. + this.addAbility(new SpellCastControllerTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), filter, false + )); + + // Scan the Clouds + // Draw two cards, then discard two cards. + this.getSpellCard().getSpellAbility().addEffect(new DrawDiscardControllerEffect(2, 1)); + } + + private TempestHart(final TempestHart card) { + super(card); + } + + @Override + public TempestHart copy() { + return new TempestHart(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WildsOfEldraine.java b/Mage.Sets/src/mage/sets/WildsOfEldraine.java index cd528d781c3..d07e8be6cad 100644 --- a/Mage.Sets/src/mage/sets/WildsOfEldraine.java +++ b/Mage.Sets/src/mage/sets/WildsOfEldraine.java @@ -135,6 +135,7 @@ public final class WildsOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Talion, the Kindly Lord", 215, Rarity.MYTHIC, mage.cards.t.TalionTheKindlyLord.class)); cards.add(new SetCardInfo("Tanglespan Lookout", 188, Rarity.UNCOMMON, mage.cards.t.TanglespanLookout.class)); cards.add(new SetCardInfo("Tattered Ratter", 152, Rarity.UNCOMMON, mage.cards.t.TatteredRatter.class)); + cards.add(new SetCardInfo("Tempest Hart", 238, Rarity.UNCOMMON, mage.cards.t.TempestHart.class)); cards.add(new SetCardInfo("The Goose Mother", 204, Rarity.RARE, mage.cards.t.TheGooseMother.class)); cards.add(new SetCardInfo("The Huntsman's Redemption", 176, Rarity.RARE, mage.cards.t.TheHuntsmansRedemption.class)); cards.add(new SetCardInfo("The Princess Takes Flight", 23, Rarity.UNCOMMON, mage.cards.t.ThePrincessTakesFlight.class));