magarena/release/Magarena/scripts/Righteous_Cause.groovy

20 lines
616 B
Groovy

[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return new MagicEvent(
permanent,
this,
"PN gains 1 life."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
}
}
]