2013-05-18 20:10:36 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
|
|
|
new MagicActivationHints(MagicTiming.Draw),
|
|
|
|
"Life+X"
|
|
|
|
) {
|
|
|
|
@Override
|
|
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
2013-05-21 19:54:06 -07:00
|
|
|
return [new MagicPayManaCostTapEvent(source,"{X}")];
|
2013-05-18 20:10:36 -07:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
|
|
final int amount=payedCost.getX();
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
amount,
|
|
|
|
this,
|
|
|
|
"PN gains RN life."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),event.getRefInt()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|