magarena/release/Magarena/scripts/Silkenfist_Fighter.groovy

23 lines
716 B
Groovy
Raw Normal View History

2013-03-13 07:20:10 -07:00
[
new MagicWhenBecomesBlockedTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return (creature == permanent) ?
2012-09-02 00:49:24 -07:00
new MagicEvent(
permanent,
this,
2013-03-13 07:20:10 -07:00
"Untap SN."
):
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
2012-09-17 00:57:21 -07:00
game.doAction(new MagicUntapAction(event.getPermanent()));
2012-06-17 05:19:08 -07:00
}
2013-03-13 07:20:10 -07:00
}
]