magarena/release/Magarena/scripts/Day_of_Judgment.groovy

21 lines
709 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
public void executeEvent(
2011-08-12 21:08:28 -07:00
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
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
}
]