magarena/release/Magarena/scripts/Septic_Rats.groovy

20 lines
691 B
Groovy

[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
return (permanent==attacker &&
permanent.getOpponent().getPoison()>0) ?
new MagicEvent(
permanent,
this,
"SN gets +1/+1 until end of turn."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,1));
}
}
]