Menu

Submission for Volrath the Fallen

75

Config

name=Volrath the Fallen
image=http://magiccards.info/scans/en/ne/75.jpg
value=4.125
rarity=R
type=Legendary,Creature
subtype=Shapeshifter
cost={3}{B}{B}{B}
pt=6/4
timing=main
requires_groovy_code
oracle={1}{B}, Discard a creature card: Volrath the Fallen gets +X/+X until end of turn, where X is the discarded card's converted mana cost.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source, "{1}{B}"),
                new MagicDiscardChosenEvent(source, A_CREATURE_CARD_FROM_HAND)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                payedCost.getTarget(),
                this,
                "SN gets +X/+X until end of turn, where X is the discarded card's converted mana cost."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getRefCard().getConvertedCost();
            game.logAppendValue(event.getPlayer(),amount);
            game.doAction(new ChangeTurnPTAction(event.getPermanent(), +amount, +amount));
        }
    }
]
Pushed