2013-08-18 19:35:14 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
|
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
|
|
"Regen"
|
|
|
|
) {
|
|
|
|
@Override
|
2013-08-30 21:00:50 -07:00
|
|
|
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()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|