magarena/release/Magarena/scripts/Rusted_Slasher.groovy

30 lines
932 B
Groovy
Raw Normal View History

2013-08-18 19:35:14 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Regen"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-08-18 19:35:14 -07:00
return [
new MagicSacrificePermanentEvent(
source,
MagicTargetChoice.SACRIFICE_ARTIFACT
),
new MagicRegenerationConditionsEvent(source,this)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Regenerate SN."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicRegenerateAction(event.getPermanent()));
}
}
]