magarena/release/Magarena/scripts/Glade_Gnarr.groovy

19 lines
660 B
Groovy

[
new MagicWhenOtherSpellIsCastTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
return cardOnStack.hasColor(MagicColor.Blue) ?
new MagicEvent(
permanent,
this,
"SN gets +2/+2 until end of turn."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),2,2));
}
}
]