magarena/release/Magarena/scripts/Molder_Beast.groovy

19 lines
647 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenOtherDiesTrigger() {
2013-04-12 19:58:51 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isArtifact()) ?
new MagicEvent(
permanent,
this,
2013-06-15 07:27:32 -07:00
"SN gets +2/+0 until end of turn."
) :
2013-04-12 19:58:51 -07:00
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),2,0));
}
}
]