Menu

Submission for Downhill Charge

69

Config

name=Downhill Charge
image=http://mtgimage.com/card/downhill%20charge.jpg
value=2.500
rarity=C
type=Instant
cost={2}{R}
ability=You may sacrifice a Mountain rather than pay SN's mana cost.
timing=removal
requires_groovy_code
oracle=You may sacrifice a Mountain rather than pay Downhill Charge's mana cost. Target creature gets +X/+0 until end of turn, where X is the number of Mountains you control.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE,
                MagicPumpTargetPicker.create(),
                this,
                "Target creature\$ gets +X/+0 until end of turn, where X is the number of Mountains you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
		final MagicPlayer player = event.getPlayer();
                final int X = player.getNrOfPermanents(MagicSubType.Mountain);
                game.doAction(new MagicChangeTurnPTAction(it, +X, +0));
            });
        }
    }
]
Pushed