29 lines
915 B
Groovy
29 lines
915 B
Groovy
[
|
|
Ior_Ruin_Expedition.T,
|
|
new MagicPermanentActivation(
|
|
[MagicConditionFactory.ChargeCountersAtLeast(3)],
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
"Life"
|
|
) {
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
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));
|
|
}
|
|
}
|
|
]
|