magarena/release/Magarena/scripts/Chandra_s_Spitfire.groovy

20 lines
694 B
Groovy

[
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
return (!damage.isCombat() &&
permanent.isOpponent(damage.getTarget())) ?
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));
}
}
]