magarena/release/Magarena/scripts/Sunblast_Angel.groovy

21 lines
732 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
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));
}
}
]