Menu

Submission for Nantuko Mentor

255

Config

name=Nantuko Mentor
image=http://mtgimage.com/card/nantuko%20mentor.jpg
value=2.500
rarity=R
type=Creature
subtype=Insect,Druid
cost={2}{G}
pt=1/1
timing=main
requires_groovy_code
oracle={2}{G}, {T}: Target creature gets +X/+X until end of turn, where X is that creature's power.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{2}{G}"),
                new MagicTapEvent(source)
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.POS_TARGET_CREATURE,
                MagicPumpTargetPicker.create(),
                this,
                "Target creature\$ gets +X/+X until end of turn, where X is that creature's power."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int X = it.getPower();
                game.doAction(new MagicChangeTurnPTAction(it, +X, +X));
            });
        }
    }
]
Pushed