magarena/release/Magarena/scripts/Righteous_Cause.groovy

20 lines
616 B
Groovy
Raw Normal View History

2013-03-13 06:25:26 -07:00
[
new MagicWhenAttacksTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return new MagicEvent(
2012-09-21 19:26:00 -07:00
permanent,
this,
"PN gains 1 life."
);
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-09-04 10:56:10 -07:00
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
2012-08-30 07:03:41 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
2012-06-17 05:19:08 -07:00
}
2013-03-13 06:25:26 -07:00
}
]