magarena/release/Magarena/scripts/Favor_of_the_Woods.groovy

25 lines
785 B
Groovy
Raw Normal View History

2013-03-14 06:34:01 -07:00
[
new MagicWhenBlocksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPermanent creature) {
return (creature == permanent.getEnchantedCreature()) ?
2012-06-17 05:19:08 -07:00
new MagicEvent(
2012-09-21 09:10:24 -07:00
permanent,
this,
"PN gains 3 life."
):
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
2012-08-30 06:11:43 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),3));
2012-06-17 05:19:08 -07:00
}
2013-03-14 06:34:01 -07:00
}
]