magarena/release/Magarena/scripts/Glaze_Fiend.groovy

22 lines
773 B
Groovy
Raw Normal View History

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