Menu

Submission for Electric Eel

24

Comment

Adapted from Firedrinker Satyr

Config

name=Electric Eel
image=http://mtgimage.com/card/electric%20eel.jpg
value=2.500
rarity=U
type=Creature
subtype=Fish
cost={U}
pt=1/1
ability=When SN enters the battlefield, SN deals 1 damage to you.
timing=main
requires_groovy_code
oracle=When Electric Eel enters the battlefield, it deals 1 damage to you. {R}{R}: Electric Eel gets +2/+0 until end of turn and deals 1 damage to you.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,MagicManaCost.create("{R}{R}"))
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "SN gets +2/+0 until end of turn and does 1 damage to PN"
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,0));
            final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),1);
            game.doAction(new MagicDealDamageAction(damage));
        }
    }
]
Pushed