24 lines
838 B
Groovy
24 lines
838 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) {
|
|
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
|
|
}
|
|
}
|
|
]
|