Menu

Submission for Gigantomancer

184

Config

name=Gigantomancer
image=http://mtgimage.com/card/gigantomancer.jpg
value=2.500
rarity=R
type=Creature
subtype=Human,Shaman
cost={7}{G}
pt=1/1
timing=main
requires_groovy_code
oracle={1}: Target creature you control becomes 7/7 until end of turn.

Script

def PT = new MagicStatic(MagicLayer.SetPT, MagicStatic.UntilEOT) {
    @Override
    public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
        pt.set(7,7);
    }
};

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

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
                new MagicBecomeTargetPicker(7,7,false),
                this,
                "Target creature\$ you control becomes 7/7 until end of turn."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicBecomesCreatureAction(it,PT));
            });
        }
    }
]
Pushed