magarena/release/Magarena/scripts/Goblin_Sharpshooter.groovy

20 lines
677 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isCreature() &&
permanent.isTapped()) ?
new MagicEvent(
permanent,
this,
"Untap SN."
) :
2013-04-12 19:58:51 -07:00
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
game.doAction(new MagicUntapAction(event.getPermanent()));
}
}
]