magarena/release/Magarena/scripts/Septic_Rats.groovy

22 lines
725 B
Groovy
Raw Normal View History

2013-03-14 06:33:31 -07:00
[
new MagicWhenAttacksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 02:06:18 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
return (permanent==attacker &&
permanent.getOpponent().getPoison()>0) ?
2012-09-02 00:42:45 -07:00
new MagicEvent(
permanent,
this,
2012-10-07 02:06:18 -07:00
"SN gets +1/+1 until end of turn."
):
2012-09-02 00:42:45 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 02:16:33 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-02 00:42:45 -07:00
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,1));
2012-06-17 05:19:08 -07:00
}
2013-03-14 06:33:31 -07:00
}
]