magarena/release/Magarena/scripts/Sunspring_Expedition.groovy

27 lines
838 B
Groovy
Raw Normal View History

2013-05-19 01:21:18 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Life"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-19 01:21:18 -07:00
return [
new MagicRemoveCounterEvent(source,MagicCounterType.Charge,3),
new MagicSacrificeEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN gains 8 life"
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),8));
}
}
]