magarena/release/Magarena/scripts/Favor_of_the_Woods.groovy

19 lines
633 B
Groovy

[
new MagicWhenBlocksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent creature) {
return (creature == permanent.getEnchantedCreature()) ?
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));
}
}
]