From dc18160af4ce2bfd50622a3c3abc7215bee7c44b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 1 Nov 2020 21:59:16 -0500 Subject: [PATCH] [CMR] Implemented Reshape the Earth --- .../src/mage/cards/r/ReshapeTheEarth.java | 34 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + .../main/java/mage/filter/StaticFilters.java | 6 ++++ Utils/mtg-cards-data.txt | 1 + 4 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/ReshapeTheEarth.java diff --git a/Mage.Sets/src/mage/cards/r/ReshapeTheEarth.java b/Mage.Sets/src/mage/cards/r/ReshapeTheEarth.java new file mode 100644 index 0000000000..34f187423d --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/ReshapeTheEarth.java @@ -0,0 +1,34 @@ +package mage.cards.r; + +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +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 ReshapeTheEarth extends CardImpl { + + public ReshapeTheEarth(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{6}{G}{G}{G}"); + + // Search your library for up to ten land cards, put them onto the battlefield tapped, then shuffle your library. + this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary( + 0, 10, StaticFilters.FILTER_CARD_LANDS + ), true, true)); + } + + private ReshapeTheEarth(final ReshapeTheEarth card) { + super(card); + } + + @Override + public ReshapeTheEarth copy() { + return new ReshapeTheEarth(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 284b6d8e6c..6e42099adc 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -169,6 +169,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Rebbec, Architect of Ascension", 42, Rarity.UNCOMMON, mage.cards.r.RebbecArchitectOfAscension.class)); cards.add(new SetCardInfo("Rejuvenating Springs", 354, Rarity.RARE, mage.cards.r.RejuvenatingSprings.class)); cards.add(new SetCardInfo("Reliquary Tower", 488, Rarity.UNCOMMON, mage.cards.r.ReliquaryTower.class)); + cards.add(new SetCardInfo("Reshape the Earth", 683, Rarity.MYTHIC, mage.cards.r.ReshapeTheEarth.class)); cards.add(new SetCardInfo("Return to Dust", 43, Rarity.UNCOMMON, mage.cards.r.ReturnToDust.class)); cards.add(new SetCardInfo("Rings of Brighthearth", 335, Rarity.RARE, mage.cards.r.RingsOfBrighthearth.class)); cards.add(new SetCardInfo("Rograkh, Son of Rohgahh", 197, Rarity.UNCOMMON, mage.cards.r.RograkhSonOfRohgahh.class)); diff --git a/Mage/src/main/java/mage/filter/StaticFilters.java b/Mage/src/main/java/mage/filter/StaticFilters.java index f22fc7d081..efba7f2b91 100644 --- a/Mage/src/main/java/mage/filter/StaticFilters.java +++ b/Mage/src/main/java/mage/filter/StaticFilters.java @@ -138,6 +138,12 @@ public final class StaticFilters { FILTER_CARD_LAND.setLockedFilter(true); } + public static final FilterLandCard FILTER_CARD_LANDS = new FilterLandCard("land cards"); + + static { + FILTER_CARD_LANDS.setLockedFilter(true); + } + public static final FilterLandCard FILTER_CARD_LAND_A = new FilterLandCard("a land card"); static { diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 985767a66a..1af4889bb0 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -39508,4 +39508,5 @@ Xenagos, God of Revels|Commander Legends|541|M|{3}{R}{G}|Legendary Enchantment C Zur the Enchanter|Commander Legends|544|M|{1}{W}{U}{B}|Legendary Creature - Human Wizard|1|4|Flying$Whenever Zur the Enchanter attacks, you may search your library for an enchantment card with converted mana cost 3 or less and put it onto the battlefield. If you do, shuffle your library.| Ramos, Dragon Engine|Commander Legends|545|M|{6}|Legendary Artifact Creature - Dragon|4|4|Flying$Whenever you cast a spell, put a +1/+1 counter on Ramos, Dragon Engine for each of that spell's colors.$Remove five +1/+1 counters from Ramos: Add {W}{W}{U}{U}{B}{B}{R}{R}{G}{G}. Activate this ability only once each turn.| Armored Skyhunter|Commander Legends|617|R|{3}{W}|Creature - Cat Knight|3|3|Flying$Whenever Armored Skyhunter attacks, look at the top six cards of your library. You may put an Aura or Equipment card from among them onto the battlefield. If an Equipment is put onto the battlefield this way, you may attach it to a creature you control. Put the rest of those cards on the bottom of your library in a random order.| +Reshape the Earth|Commander Legends|683|M|{6}{G}{G}{G}|Sorcery|||Search your library for up to ten land cards, put them onto the battlefield tapped, then shuffle your library.| Mana Confluence|Commander Legends|721|M||Land|||{T}, Pay 1 life: Add one mana of any color.|