Menu

Submission for Nakaya Shade

69

Config

name=Nakaya Shade
image=http://mtgimage.com/card/nakaya%20shade.jpg
value=2.500
rarity=U
type=Creature
subtype=Shade
cost={1}{B}
pt=1/1
timing=main
requires_groovy_code
oracle={B}: Nakaya Shade gets +1/+1 until end of turn unless any player pays {2}.

Script

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                source.getOpponent(),
                new MagicMayChoice(
                    "Pay {2}?",
                    new MagicPayManaCostChoice(MagicManaCost.create("{2}"))
                ),
                this,
                "PN may\$ pay {2}\$. If PN doesn't, SN gets +1/+1 until end of turn."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
                game.doAction(new MagicChangeTurnPTAction(event.getPermanent(), 1, 1));
            }
        }
    }
]
Pushed