Menu

Submission for Inner Calm, Outer Strength

133

Config

name=Inner Calm, Outer Strength
image=http://mtgimage.com/card/inner%20calm%2C%20outer%20strength.jpg
value=2.500
rarity=C
type=Instant
subtype=Arcane
cost={2}{G}
timing=pump
requires_groovy_code
oracle=Target creature gets +X/+X until end of turn, where X is the number of cards in your hand.

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/+X until end of turn, where X is the number of cards in PN's hand. ("+cardOnStack.getController().getHandSize()+")"
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int X = event.getCardOnStack().getController().getHandSize();
                game.doAction(new MagicChangeTurnPTAction(it,X,X));
            });
        }
    }
]
Pushed