2013-02-11 19:32:26 -08:00
|
|
|
[
|
2013-06-23 02:49:11 -07:00
|
|
|
new MagicWhenYouCastSpiritOrArcaneTrigger() {
|
2013-02-11 19:32:26 -08:00
|
|
|
@Override
|
2013-06-23 02:49:11 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicCardOnStack cardOnStack) {
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
new MagicSimpleMayChoice(
|
|
|
|
MagicSimpleMayChoice.GAIN_LIFE,
|
|
|
|
cardOnStack.getConvertedCost(),
|
|
|
|
MagicSimpleMayChoice.DEFAULT_YES
|
|
|
|
),
|
|
|
|
cardOnStack.getConvertedCost(),
|
|
|
|
this,
|
|
|
|
"You may gain RN life."
|
|
|
|
);
|
2013-02-11 19:32:26 -08:00
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
|
2013-02-11 19:32:26 -08:00
|
|
|
@Override
|
2013-06-15 03:20:38 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-03-22 19:26:50 -07:00
|
|
|
if (event.isYes()) {
|
2013-06-23 02:49:11 -07:00
|
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(), event.getRefInt()));
|
2013-02-11 19:32:26 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|