magarena/release/Magarena/scripts/Blind_Obedience.groovy

13 lines
473 B
Groovy
Raw Normal View History

2013-02-11 04:04:40 -08:00
[
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
2013-06-23 18:29:26 -07:00
if (otherPermanent.isEnemy(permanent) &&
2013-02-11 04:04:40 -08:00
(otherPermanent.isArtifact() || otherPermanent.isCreature())) {
game.doAction(new MagicTapAction(otherPermanent,false));
}
return MagicEvent.NONE;
}
}
]