magarena/release/Magarena/scripts/Grazing_Gladehart.groovy

23 lines
684 B
Groovy

[
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));
}
}
}
]