Menu

Submission for Kitsune Loreweaver

17

Config

name=Kitsune Loreweaver
image=http://mtgimage.com/card/kitsune%20loreweaver.jpg
value=2.500
rarity=C
type=Creature
subtype=Fox,Cleric
cost={1}{W}
pt=2/1
timing=main
requires_groovy_code
oracle={1}{W}: Kitsune Loreweaver gets +0/+X until end of turn, where X is the number of cards in your hand.

Script

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            final int amount = source.getController().getHandSize();
            return new MagicEvent(
                source,
                amount,
                this,
                "SN gets +0/+X until end of turn. (X="+amount+")"
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount=event.getRefInt();
                game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),0,amount));
        }
    }
]
Pushed