25 lines
879 B
Groovy
25 lines
879 B
Groovy
[
|
|
new MagicWhenBecomesBlockedTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
|
return (creature == permanent) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
new MagicMayChoice(),
|
|
this,
|
|
"PN may\$ untap SN and remove it from combat."
|
|
) :
|
|
MagicEvent.NONE;
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
final MagicPermanent permanent = event.getPermanent();
|
|
game.doAction(new MagicUntapAction(permanent));
|
|
game.doAction(new MagicRemoveFromCombatAction(permanent));
|
|
}
|
|
}
|
|
}
|
|
]
|