magarena/release/Magarena/scripts/Grazing_Gladehart.groovy

25 lines
725 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.GAIN_LIFE,
2,
MagicSimpleMayChoice.DEFAULT_YES),
this,
"PN may gain 2 life."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
if (event.isYes()) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),2));
}
}
}
]