magarena/release/Magarena/scripts/Starlight_Invoker.groovy

27 lines
741 B
Groovy
Raw Normal View History

2013-05-18 06:31:36 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Main,true),
"Life"
2013-06-14 20:37:19 -07:00
) {
2013-06-23 18:29:26 -07:00
2013-05-18 06:31:36 -07:00
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-21 19:54:06 -07:00
return [new MagicPayManaCostEvent(source,"{7}{W}")];
2013-05-18 06:31:36 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN gains 5 life."
);
}
@Override
2013-06-14 20:37:19 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-05-18 06:31:36 -07:00
game.doAction(new MagicChangeLifeAction(event.getPlayer(),5));
}
}
]