2013-04-01 06:38:45 -07:00
|
|
|
[
|
|
|
|
new MagicWhenBlocksTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
2012-10-07 02:06:01 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
|
2012-06-17 05:19:08 -07:00
|
|
|
final MagicPermanent equippedCreature = permanent.getEquippedCreature();
|
|
|
|
final MagicPermanent blocked = equippedCreature.getBlockedCreature();
|
2012-10-07 02:06:01 -07:00
|
|
|
return (equippedCreature == blocked && blocked.isValid()) ?
|
2012-06-17 05:19:08 -07:00
|
|
|
new MagicEvent(
|
2011-08-13 02:36:19 -07:00
|
|
|
permanent,
|
2012-10-06 20:32:09 -07:00
|
|
|
blocked,
|
2011-08-13 02:36:19 -07:00
|
|
|
this,
|
2013-04-01 06:38:45 -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
|
2013-06-15 07:08:11 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-06-21 23:40:39 -07:00
|
|
|
game.doAction(MagicChangeStateAction.Set(
|
|
|
|
event.getRefPermanent(),
|
|
|
|
MagicPermanentState.DoesNotUntapDuringNext
|
|
|
|
));
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
2013-04-01 06:38:45 -07:00
|
|
|
}
|
|
|
|
]
|