magarena/release/Magarena/scripts/Pride_Guardian.groovy

21 lines
683 B
Groovy

[
new MagicWhenBlocksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
return (permanent == blocker && permanent.getBlockedCreature().isValid()) ?
new MagicEvent(
permanent,
this,
"PN gains 3 life."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
}
}
]