magarena/release/Magarena/scripts/Ezuri_s_Archers.groovy

25 lines
884 B
Groovy

[
new MagicWhenBlocksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
final MagicPermanent blocked=permanent.getBlockedCreature();
return (permanent==blocker &&
blocked.isValid() &&
blocked.hasAbility(MagicAbility.Flying)) ?
new MagicEvent(
permanent,
this,
"SN gets +3/+0 until end of turn."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
}
}
]