From 9cc92553ad04feebfdfd48a608218130ed73bb8d Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 17 Dec 2018 21:43:00 -0500 Subject: [PATCH] Implemented Growth Spiral --- Mage.Sets/src/mage/cards/g/GrowthSpiral.java | 33 +++++++++++++++++++ .../src/mage/sets/RavnicaAllegiance.java | 1 + 2 files changed, 34 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GrowthSpiral.java diff --git a/Mage.Sets/src/mage/cards/g/GrowthSpiral.java b/Mage.Sets/src/mage/cards/g/GrowthSpiral.java new file mode 100644 index 0000000000..1168e1cfa3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GrowthSpiral.java @@ -0,0 +1,33 @@ +package mage.cards.g; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GrowthSpiral extends CardImpl { + + public GrowthSpiral(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}{U}"); + + // Draw a card. You may put a land card from your hand onto the battlefield. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); + this.getSpellAbility().addEffect(new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A)); + } + + public GrowthSpiral(final GrowthSpiral card) { + super(card); + } + + @Override + public GrowthSpiral copy() { + return new GrowthSpiral(this); + } +} diff --git a/Mage.Sets/src/mage/sets/RavnicaAllegiance.java b/Mage.Sets/src/mage/sets/RavnicaAllegiance.java index dc00ec7197..cfc7ac4ad1 100644 --- a/Mage.Sets/src/mage/sets/RavnicaAllegiance.java +++ b/Mage.Sets/src/mage/sets/RavnicaAllegiance.java @@ -31,6 +31,7 @@ public final class RavnicaAllegiance extends ExpansionSet { this.ratioBoosterMythic = 8; this.maxCardNumberInBooster = 259; + cards.add(new SetCardInfo("Growth Spiral", 178, Rarity.COMMON, mage.cards.g.GrowthSpiral.class)); cards.add(new SetCardInfo("Mortify", 192, Rarity.UNCOMMON, mage.cards.m.Mortify.class)); }