magarena/release/Magarena/scripts/Molder_Beast.groovy

20 lines
683 B
Groovy

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