From 8850b4243e81f623e1601062a9dc5280c962c6bf Mon Sep 17 00:00:00 2001 From: jmharmon <37360760+jmharmon@users.noreply.github.com> Date: Tue, 3 Sep 2019 23:28:51 -0700 Subject: [PATCH] Implement Witching Well --- Mage.Sets/src/mage/cards/w/WitchingWell.java | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WitchingWell.java diff --git a/Mage.Sets/src/mage/cards/w/WitchingWell.java b/Mage.Sets/src/mage/cards/w/WitchingWell.java new file mode 100644 index 0000000000..965e730f14 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WitchingWell.java @@ -0,0 +1,44 @@ +package mage.cards.w; + +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; + +import java.util.UUID; + +/** + * + * @author jmharmon + */ + +public final class WitchingWell extends CardImpl { + + public WitchingWell(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{U}"); + + // When Witching Well enters the battlefield, scry 2. + this.addAbility(new EntersBattlefieldTriggeredAbility(new ScryEffect(2))); + + // {3}{U}, Sacrifice Witching Well: Draw two cards. + Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(2), new ManaCostsImpl("{3}{U}")); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + public WitchingWell(final WitchingWell card) { + super(card); + } + + @Override + public WitchingWell copy() { + return new WitchingWell(this); + } +}