Menu

Submission for Varchild's War-Riders

110

Config

name=Varchild's War-Riders
image=http://mtgimage.com/card/varchild%27s%20war-riders.jpg
value=2.500
rarity=R
type=Creature
subtype=Human,Warrior
cost={1}{R}
pt=3/4
ability=Trample; rampage 1
timing=main
requires_groovy_code
oracle=Cumulative upkeepā€”Have an opponent put a 1/1 red Survivor creature token onto the battlefield. Trample; rampage 1

Script

[
    new MagicAtYourUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice("Pay cumulative upkeep?"),
                this,
                "Have an opponent put a 1/1 red Survivor creature token onto the battlefield for each age counter on SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.Age,1));
            final int age = event.getPermanent().getCounters(MagicCounterType.Age);
            if (event.isYes()) {
                game.doAction(new MagicPlayTokensAction(
                    event.getPlayer().getOpponent(),
                    TokenCardDefinitions.get("1/1 red Survivor creature token"),
                    age
                ));
            } else {
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
            }
        }
    }
]
Pushed