2013-05-26 22:21:12 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
2013-07-06 23:21:21 -07:00
|
|
|
new MagicActivationHints(MagicTiming.Pump),
|
2013-05-26 22:21:12 -07:00
|
|
|
"Regen"
|
|
|
|
) {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
|
|
return [
|
|
|
|
new MagicPayManaCostTapEvent(source,"{G}")
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
MagicTargetChoice.POS_TARGET_CREATURE,
|
|
|
|
MagicRegenerateTargetPicker.getInstance(),
|
|
|
|
this,
|
|
|
|
"Regenerate target creature\$."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicRegenerateAction(creature));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|