magarena/release/Magarena/scripts/Battered_Golem.groovy

23 lines
801 B
Groovy

[
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (permanent != otherPermanent &&
otherPermanent.isArtifact() &&
permanent.isTapped()) ?
new MagicEvent(
permanent,
this,
"Untap SN.") :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicUntapAction(event.getPermanent()));
}
}
]