Menu

Submission for Vitalizing Cascade

346

Comment

Based on Stream of Life

Config

name=Vitalizing Cascade
image=http://mtgimage.com/card/vitalizing%20cascade.jpg
value=2.500
rarity=U
type=Instant
cost={X}{G}{W}
timing=pump
requires_groovy_code
oracle=You gain X plus 3 life.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_PLAYER,
                payedCost.getX(),
                this,
                "Target player\$ gains RN life."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                game.doAction(new MagicChangeLifeAction(it, event.getRefInt() + 3));
            });
        }
    }
]
Pushed