21 lines
709 B
Groovy
21 lines
709 B
Groovy
|
[
|
||
|
new MagicSpellCardEvent() {
|
||
|
@Override
|
||
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
cardOnStack,
|
||
|
this,
|
||
|
"Destroy all creatures.");
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(
|
||
|
final MagicGame game,
|
||
|
final MagicEvent event,
|
||
|
final Object[] choiceResults) {
|
||
|
final Collection<MagicPermanent> targets=
|
||
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
|
||
|
game.doAction(new MagicDestroyAction(targets));
|
||
|
}
|
||
|
}
|
||
|
]
|