magarena/release/Magarena/scripts/Maw_of_the_Mire.groovy

25 lines
882 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_LAND,
new MagicDestroyTargetPicker(false),
this,
"Destroy target land\$. PN gains 4 life."
);
}
@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));
game.doAction(new MagicChangeLifeAction(event.getPlayer(),4));
}
});
}
}
]