magarena/release/Magarena/scripts/Starlight_Invoker.groovy

30 lines
838 B
Groovy
Raw Normal View History

2013-05-18 06:31:36 -07:00
[
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{7}{W}")],
new MagicActivationHints(MagicTiming.Main,true),
"Life"
) {
@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
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),5));
}
}
]