magarena/release/Magarena/scripts/Armageddon.groovy

19 lines
623 B
Groovy
Raw Normal View History

2013-05-24 02:52:20 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Destroy all lands."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_LAND);
game.doAction(new MagicDestroyAction(targets));
}
}
]