magarena/release/Magarena/scripts/Ezuri_s_Archers.groovy

24 lines
838 B
Groovy
Raw Normal View History

2013-03-18 02:55:15 -07:00
[
new MagicWhenBlocksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:19:55 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
2011-08-13 08:52:26 -07:00
final MagicPermanent blocked=permanent.getBlockedCreature();
2012-10-07 02:19:55 -07:00
return (permanent==blocker &&
blocked.isValid() &&
blocked.hasAbility(MagicAbility.Flying)) ?
2011-08-13 08:52:26 -07:00
new MagicEvent(
2012-09-02 00:39:12 -07:00
permanent,
this,
2012-10-07 02:19:55 -07:00
"SN gets +3/+0 until end of turn."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 08:52:26 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-02 00:39:12 -07:00
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
2012-06-17 05:19:08 -07:00
}
2013-03-18 02:55:15 -07:00
}
]