22 lines
714 B
Groovy
22 lines
714 B
Groovy
[
|
|
new MagicWhenBecomesBlockedTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocked) {
|
|
return (permanent == blocked) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN gains 1 life."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event,
|
|
final Object[] choiceResults) {
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
|
|
}
|
|
}
|
|
]
|