magarena/release/Magarena/scripts/Goblin_Sharpshooter.groovy

21 lines
713 B
Groovy
Raw Normal View History

2013-03-14 06:36:14 -07:00
[
new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isCreature() &&
permanent.isTapped()) ?
new MagicEvent(
permanent,
this,
2012-09-16 23:29:08 -07:00
"Untap SN.") :
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-02 00:04:32 -07:00
game.doAction(new MagicUntapAction(event.getPermanent()));
2012-06-17 05:19:08 -07:00
}
2013-03-14 06:36:14 -07:00
}
]