magarena/release/Magarena/scripts/Melt_Terrain.groovy

27 lines
1.0 KiB
Groovy
Raw Normal View History

2013-05-18 22:31:45 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_LAND,
new MagicDestroyTargetPicker(false),
this,
2013-06-23 18:29:26 -07:00
"Destroy target land\$. " +
2013-05-18 22:31:45 -07:00
"SN deals 2 damage to that land's controller."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent permanent) {
game.doAction(new MagicDestroyAction(permanent));
final MagicDamage damage = new MagicDamage(event.getSource(),permanent.getController(),2);
game.doAction(new MagicDealDamageAction(damage));
}
});
}
}
]