Menu

Submission for Psychatog

258

Config

name=Psychatog
image=http://mtgimage.com/card/psychatog.jpg
value=2.500
rarity=U
type=Creature
subtype=Atog
cost={1}{U}{B}
pt=1/2
ability=Discard a card: SN gets +1/+1 until end of turn.
timing=main
requires_groovy_code
oracle=Discard a card: Psychatog gets +1/+1 until end of turn. Exile two cards from your graveyard: Psychatog gets +1/+1 until end of turn.

Script

def choice = new MagicTargetChoice("a card from your graveyard");

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

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "SN gets +1/+1 until end of turn."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
           game.doAction(new MagicChangeTurnPTAction(event.getPermanent(), 1, 1));
        }
    }
]
Pushed