Menu

Submission for Kjeldoran Pride

136

Config

name=Kjeldoran Pride
image=http://mtgimage.com/card/kjeldoran%20pride.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={1}{W}
ability=Enchanted creature gets +1/+2.
timing=aura
enchant=pump,pos creature
requires_groovy_code
oracle=Enchant creature. Enchanted creature gets +1/+2. {2}{U}: Attach Kjeldoran Pride to target creature other than enchanted creature.

Script

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.PosOther("target creature", source.getEnchantedPermanent()),
                this,
                "Attach SN to target creature\$."
                );
        }

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