magarena/release/Magarena/scripts/Day_of_Judgment.groovy

18 lines
630 B
Groovy
Raw Normal View History

2013-03-18 02:50:38 -07:00
[
new MagicSpellCardEvent() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
2012-09-15 20:19:50 -07:00
cardOnStack,
2011-08-12 21:08:28 -07:00
this,
"Destroy all creatures.");
2012-06-17 05:19:08 -07:00
}
@Override
2013-06-15 07:08:11 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
2012-06-17 05:19:08 -07:00
game.doAction(new MagicDestroyAction(targets));
}
2013-03-18 02:50:38 -07:00
}
]