From c285a815743aa6a44329e235788e5f11c25eba2a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Nov 2022 16:05:23 -0400 Subject: [PATCH] [BRC] Implement Titania, Nature's Force --- .../src/mage/cards/t/TitaniaNaturesForce.java | 66 +++++++++++++++++++ .../mage/sets/TheBrothersWarCommander.java | 1 + 2 files changed, 67 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TitaniaNaturesForce.java diff --git a/Mage.Sets/src/mage/cards/t/TitaniaNaturesForce.java b/Mage.Sets/src/mage/cards/t/TitaniaNaturesForce.java new file mode 100644 index 0000000000..a714c54671 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TitaniaNaturesForce.java @@ -0,0 +1,66 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.DiesCreatureTriggeredAbility; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.MillCardsControllerEffect; +import mage.abilities.effects.common.ruleModifying.PlayLandsFromGraveyardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterCard; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.game.permanent.token.TitaniaProtectorOfArgothElementalToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TitaniaNaturesForce extends CardImpl { + + private static final FilterCard filter = new FilterCard("Forests"); + private static final FilterPermanent filter2 = new FilterPermanent(SubType.FOREST, "a Forest"); + private static final FilterPermanent filter3 + = new FilterControlledPermanent(SubType.ELEMENTAL, "an Elemental you control"); + + static { + filter.add(SubType.FOREST.getPredicate()); + } + + public TitaniaNaturesForce(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.ELEMENTAL); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // You may play Forests from your graveyard. + this.addAbility(new SimpleStaticAbility(new PlayLandsFromGraveyardControllerEffect(filter))); + + // Whenever a Forest enters the battlefield under your control, create a 5/3 green Elemental creature token. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new CreateTokenEffect(new TitaniaProtectorOfArgothElementalToken()), filter2 + )); + + // Whenever an Elemental you control dies, you may mill three cards. + this.addAbility(new DiesCreatureTriggeredAbility( + new MillCardsControllerEffect(3), true, filter3 + )); + } + + private TitaniaNaturesForce(final TitaniaNaturesForce card) { + super(card); + } + + @Override + public TitaniaNaturesForce copy() { + return new TitaniaNaturesForce(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java index 6d9911deeb..6bd67f427a 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java @@ -164,6 +164,7 @@ public final class TheBrothersWarCommander extends ExpansionSet { cards.add(new SetCardInfo("Thought Vessel", 167, Rarity.UNCOMMON, mage.cards.t.ThoughtVessel.class)); cards.add(new SetCardInfo("Thoughtcast", 99, Rarity.COMMON, mage.cards.t.Thoughtcast.class)); cards.add(new SetCardInfo("Thran Dynamo", 168, Rarity.UNCOMMON, mage.cards.t.ThranDynamo.class)); + cards.add(new SetCardInfo("Titania, Nature's Force", 25, Rarity.MYTHIC, mage.cards.t.TitaniaNaturesForce.class)); cards.add(new SetCardInfo("Trading Post", 169, Rarity.RARE, mage.cards.t.TradingPost.class)); cards.add(new SetCardInfo("Traxos, Scourge of Kroog", 170, Rarity.RARE, mage.cards.t.TraxosScourgeOfKroog.class)); cards.add(new SetCardInfo("Unbreakable Formation", 78, Rarity.RARE, mage.cards.u.UnbreakableFormation.class));