mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implement Witching Well
This commit is contained in:
parent
d5aabe4e9d
commit
8850b4243e
1 changed files with 44 additions and 0 deletions
44
Mage.Sets/src/mage/cards/w/WitchingWell.java
Normal file
44
Mage.Sets/src/mage/cards/w/WitchingWell.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue