magarena/release/Magarena/scripts/Favor_of_the_Woods.groovy

24 lines
715 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));
}
}
]