magarena/release/Magarena/scripts/Starlight_Invoker.groovy

30 lines
883 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) {
return [new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.create("{7}{W}"))];
}
@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));
}
}
]