magarena/release/Magarena/scripts/Wall_of_Frost.groovy

23 lines
854 B
Groovy
Raw Normal View History

2013-03-18 06:10:20 -07:00
[
new MagicWhenBlocksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-10-07 01:48:20 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
final MagicPermanent blocked=permanent.getBlockedCreature();
2012-10-07 01:48:20 -07:00
return (permanent==blocker && blocked.isValid()) ?
new MagicEvent(
permanent,
blocked,
this,
2012-10-07 01:48:20 -07:00
"RN doesn't untap during its controller's next untap step."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-12 21:16:17 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
game.doAction(new MagicChangeStateAction(event.getRefPermanent(),MagicPermanentState.DoesNotUntapDuringNext,true));
2012-06-17 05:19:08 -07:00
}
2013-03-18 06:10:20 -07:00
}
]