Menu

Submission for Latulla, Keldon Overseer

95

Config

name=Latulla, Keldon Overseer
image=http://mtgimage.com/card/latulla%2C%20keldon%20overseer.jpg
value=2.500
rarity=R
type=Legendary,Creature
subtype=Human,Spellshaper
cost={3}{R}{R}
pt=3/3
timing=main
requires_groovy_code
oracle={X}{R}, {T}, Discard two cards: Latulla, Keldon Overseer deals X damage to target creature or player.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Damage"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                    new MagicPayManaCostEvent(source,"{X}{R}"),
                    new MagicTapEvent(source),
                    new MagicDiscardEvent(source),
                    new MagicDiscardEvent(source)
                ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                payedCost.getX(), 
                this,
                "SN deals RN damage to target creature or player\$."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                game.doAction(new MagicDealDamageAction(event.getSource(),it,event.getRefInt()));
            });
        }
    }
]
Pushed