Implement Witching Well

This commit is contained in:
jmharmon 2019-09-03 23:28:51 -07:00 committed by GitHub
parent d5aabe4e9d
commit 8850b4243e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}