magarena/release/Magarena/scripts/Augur_il_Vec.groovy

25 lines
780 B
Groovy

[
new MagicPermanentActivation(
[MagicCondition.YOUR_UPKEEP_CONDITION],
new MagicActivationHints(MagicTiming.None),
"Life+4"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicSacrificeEvent(source)];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN gains 4 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),4));
}
}
]