magarena/release/Magarena/scripts/Sacred_Prey.groovy

19 lines
614 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
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
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
}
}
]