Menu

Submission for Karplusan Yeti

198

Config

name=Karplusan Yeti
image=http://mtgimage.com/card/karplusan%20yeti.jpg
value=2.500
rarity=R
type=Creature
subtype=Yeti
cost={3}{R}{R}
pt=3/3
timing=main
requires_groovy_code
oracle={T}: Karplusan Yeti deals damage equal to its power to target creature. That creature deals damage equal to its power to Karplusan Yeti.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Damage"
    ) {

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE,
                new MagicDamageTargetPicker(source.getPower()),
                this,
                "SN deals damage equal to its power to target creature. " +
                "That creature deals damage equal to its power to SN."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicDealDamageAction(
                    new MagicDamage(
                        event.getPermanent(),
                        it,
                        event.getPermanent().getPower()
                    )
                ));
                game.doAction(new MagicDealDamageAction(
                    new MagicDamage(
                        it,
                        event.getPermanent(),
                        it.getPower()
                    )
                ));
            });
        }
    }
]
Pushed