From e0235d99980606f7b1841700458f6be1eda4a303 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 21 May 2019 13:33:58 -0400 Subject: [PATCH] Implemented Waterlogged Grove --- .../src/mage/cards/w/WaterloggedGrove.java | 51 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WaterloggedGrove.java diff --git a/Mage.Sets/src/mage/cards/w/WaterloggedGrove.java b/Mage.Sets/src/mage/cards/w/WaterloggedGrove.java new file mode 100644 index 0000000000..dbf00c5eea --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WaterloggedGrove.java @@ -0,0 +1,51 @@ +package mage.cards.w; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.PayLifeCost; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.mana.BlueManaAbility; +import mage.abilities.mana.GreenManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WaterloggedGrove extends CardImpl { + + public WaterloggedGrove(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + // {T}, Pay 1 life: Add {G} or {U}. + Ability ability = new GreenManaAbility(); + ability.addCost(new PayLifeCost(1)); + this.addAbility(ability); + ability = new BlueManaAbility(); + ability.addCost(new PayLifeCost(1)); + this.addAbility(ability); + + // {1}, {T}, Sacrifice Waterlogged Grove: Draw a card. + ability = new SimpleActivatedAbility( + new DrawCardSourceControllerEffect(1), new GenericManaCost(1) + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private WaterloggedGrove(final WaterloggedGrove card) { + super(card); + } + + @Override + public WaterloggedGrove copy() { + return new WaterloggedGrove(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index a38fe7579c..79f8e32939 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -62,6 +62,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Undead Augur", 112, Rarity.UNCOMMON, mage.cards.u.UndeadAugur.class)); cards.add(new SetCardInfo("Venomous Changeling", 114, Rarity.COMMON, mage.cards.v.VenomousChangeling.class)); cards.add(new SetCardInfo("Wall of One Thousand Cuts", 36, Rarity.COMMON, mage.cards.w.WallOfOneThousandCuts.class)); + cards.add(new SetCardInfo("Waterlogged Grove", 248, Rarity.RARE, mage.cards.w.WaterloggedGrove.class)); cards.add(new SetCardInfo("Wing Shards", 38, Rarity.UNCOMMON, mage.cards.w.WingShards.class)); } }