Menu

Submission for Mogg Maniac

94

Config

name=Mogg Maniac
image=http://mtgimage.com/card/mogg%20maniac.jpg
value=2.500
rarity=U
type=Creature
subtype=Goblin
cost={1}{R}
pt=1/1
timing=main
requires_groovy_code
oracle=Whenever Mogg Maniac is dealt damage, it deals that much damage to target opponent.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            final int amount = damage.getDealtAmount();
            return (damage.getTarget() == permanent) ?
                new MagicEvent(
                    permanent,
                    MagicTargetChoice.TARGET_OPPONENT,
                    amount,
                    this,
                    "SN deals RN damage to target opponent\$."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final MagicDamage damage=new MagicDamage(event.getSource(),it,event.getRefInt());
                game.doAction(new MagicDealDamageAction(damage));
            });
        }
    }
]
Pushed