magarena/release/Magarena/scripts/Sunblast_Angel.groovy

19 lines
678 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"Destroy all tapped creatures."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_TAPPED_CREATURE);
game.doAction(new MagicDestroyAction(targets));
}
}
]