From 3497337f3c85256623524547281147c3e2abe644 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 30 May 2021 17:40:52 -0400 Subject: [PATCH] [MH2] Implemented Terramorph --- Mage.Sets/src/mage/cards/t/Terramorph.java | 38 ++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons2.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/t/Terramorph.java diff --git a/Mage.Sets/src/mage/cards/t/Terramorph.java b/Mage.Sets/src/mage/cards/t/Terramorph.java new file mode 100644 index 0000000000..5576991e4a --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/Terramorph.java @@ -0,0 +1,38 @@ +package mage.cards.t; + +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +import mage.abilities.keyword.ReboundAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInLibrary; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Terramorph extends CardImpl { + + public Terramorph(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}"); + + // Search your library for a basic land card, put it into the battlefield, then shuffle. + this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect( + new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), false + )); + + // Rebound + this.addAbility(new ReboundAbility()); + } + + private Terramorph(final Terramorph card) { + super(card); + } + + @Override + public Terramorph copy() { + return new Terramorph(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons2.java b/Mage.Sets/src/mage/sets/ModernHorizons2.java index 05fe6963b3..6b5c5d604a 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons2.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons2.java @@ -144,6 +144,7 @@ public final class ModernHorizons2 extends ExpansionSet { cards.add(new SetCardInfo("Sweep the Skies", 70, Rarity.UNCOMMON, mage.cards.s.SweepTheSkies.class)); cards.add(new SetCardInfo("Sylvan Anthem", 176, Rarity.RARE, mage.cards.s.SylvanAnthem.class)); cards.add(new SetCardInfo("Tanglepool Bridge", 257, Rarity.COMMON, mage.cards.t.TanglepoolBridge.class)); + cards.add(new SetCardInfo("Terramorph", 177, Rarity.UNCOMMON, mage.cards.t.Terramorph.class)); cards.add(new SetCardInfo("The Underworld Cookbook", 240, Rarity.UNCOMMON, mage.cards.t.TheUnderworldCookbook.class)); cards.add(new SetCardInfo("Thornglint Bridge", 258, Rarity.COMMON, mage.cards.t.ThornglintBridge.class)); cards.add(new SetCardInfo("Thrasta, Tempest's Roar", 178, Rarity.MYTHIC, mage.cards.t.ThrastaTempestsRoar.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 9c35b983e3..85289664fd 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -41428,7 +41428,7 @@ Scurry Oak|Modern Horizons 2|172|U|{2}{G}|Creature - Treefolk|1|2|Evolve$Wheneve Squirrel Sanctuary|Modern Horizons 2|174|U|{G}|Enchantment|||When Squirrel Sanctuary enters the battlefield, create a 1/1 green Squirrel creature token.$Whenever a nontoken creature you control dies, you may pay {1}. If you do, return Squirrel Sanctuary to its owner's hand.| Squirrel Sovereign|Modern Horizons 2|175|U|{1}{G}|Creature - Squirrel Noble|2|2|Other Squirrels you control get +1/+1.| Sylvan Anthem|Modern Horizons 2|176|R|{G}{G}|Enchantment|||Green creatures you control get +1/+1.$Whenever a green creature enters the battlefield under your control, scry 1.| -Terarmorph|Modern Horizons 2|177|U|{3}{G}|Sorcery|||Search your library for a basic land card, put it into the battlefield, then shuffle.$Rebound| +Terramorph|Modern Horizons 2|177|U|{3}{G}|Sorcery|||Search your library for a basic land card, put it into the battlefield, then shuffle.$Rebound| Thrasta, Tempest's Roar|Modern Horizons 2|178|M|{10}{G}{G}|Legendary Creature - Dinosaur|7|7|This spell costs {3} less to cast for each other spell cast this turn.$Trample, haste$Trample over planeswalkers$Thrasta, Tempest's Roar has hexproof as long as it entered the battlefield this turn.| Timeless Witness|Modern Horizons 2|179|U|{2}{G}{G}|Creature - Human Shaman|2|1|When Timeless Witness enters the battlefield, return target card from your graveyard to your hand.$Eternalize {5}{G}{G}| Tireless Provisioner|Modern Horizons 2|180|U|{2}{G}|Creature - Elf Scout|3|2|Landfall — Whenever a land enters the battelfield under your control, create a Food token or a Treasure token.|