Menu

Submission for Trained Pronghorn

30

Config

name=Trained Pronghorn
image=http://mtgimage.com/card/trained%20pronghorn.jpg
value=2.500
rarity=C
type=Creature
subtype=Antelope
cost={1}{W}
pt=1/1
timing=main
requires_groovy_code
oracle=Discard a card: Prevent all damage that would be dealt to Trained Pronghorn this turn.

Script

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Prevent all combat damage that would be dealt to SN this turn."
            );
        }

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