From 5fe95dcd201d780c639119d0f59c6a7be5eb9a2f Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Sep 2020 14:41:17 -0400 Subject: [PATCH] [ZNR] Implemented Roiling Regrowth --- .../src/mage/cards/r/RoilingRegrowth.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RoilingRegrowth.java diff --git a/Mage.Sets/src/mage/cards/r/RoilingRegrowth.java b/Mage.Sets/src/mage/cards/r/RoilingRegrowth.java new file mode 100644 index 0000000000..20f43c3368 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RoilingRegrowth.java @@ -0,0 +1,42 @@ +package mage.cards.r; + +import mage.abilities.effects.common.SacrificeControllerEffect; +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.FilterCard; +import mage.filter.StaticFilters; +import mage.filter.common.FilterBasicLandCard; +import mage.target.common.TargetCardInLibrary; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RoilingRegrowth extends CardImpl { + + private static final FilterCard filter = new FilterBasicLandCard("basic land cards"); + + public RoilingRegrowth(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); + + // Sacrifice a land. Search your library for up to two basic land cards, put them onto the battlefield tapped, then shuffle your library. + this.getSpellAbility().addEffect(new SacrificeControllerEffect( + StaticFilters.FILTER_LAND, 1, null + ).setText("Sacrifice a land.")); + this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect( + new TargetCardInLibrary(0, 2, filter), true + )); + } + + private RoilingRegrowth(final RoilingRegrowth card) { + super(card); + } + + @Override + public RoilingRegrowth copy() { + return new RoilingRegrowth(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 081df995d7..1025ae21bd 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -143,6 +143,7 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Plains", 266, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Prowling Felidar", 34, Rarity.COMMON, mage.cards.p.ProwlingFelidar.class)); cards.add(new SetCardInfo("Riverglide Pathway", 264, Rarity.RARE, mage.cards.r.RiverglidePathway.class)); + cards.add(new SetCardInfo("Roiling Regrowth", 201, Rarity.UNCOMMON, mage.cards.r.RoilingRegrowth.class)); cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class)); cards.add(new SetCardInfo("Sea Gate Colossus", 251, Rarity.COMMON, mage.cards.s.SeaGateColossus.class)); cards.add(new SetCardInfo("Shell Shield", 79, Rarity.COMMON, mage.cards.s.ShellShield.class));