magarena/release/Magarena/scripts/Septic_Rats.groovy

23 lines
771 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,
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,1));
}
}
]