magarena/release/Magarena/scripts/Blind_Obedience.groovy

13 lines
473 B
Groovy

[
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
if (otherPermanent.isEnemy(permanent) &&
(otherPermanent.isArtifact() || otherPermanent.isCreature())) {
game.doAction(new MagicTapAction(otherPermanent,false));
}
return MagicEvent.NONE;
}
}
]