Menu

Submission for Rakdos Ickspitter

128

Config

name=Rakdos Ickspitter
image=http://mtgimage.com/card/rakdos%20ickspitter.jpg
value=2.500
rarity=C
type=Creature
subtype=Thrull
cost={1}{B}{R}
pt=1/1
timing=main
requires_groovy_code
oracle={T}: Rakdos Ickspitter deals 1 damage to target creature and that creature's controller loses 1 life.

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(1),
                this,
                "SN deals 1 damage to target creature\$. Its controller loses 1 life."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicDealDamageAction(event.getSource(),it,1));
                game.doAction(new MagicChangeLifeAction(it.getController(),-1));
            });
        }
    }
]
Pushed