Menu

Submission for Goblin Boom Keg

159

Config

name=Goblin Boom Keg
image=http://mtgimage.com/card/goblin%20boom%20keg.jpg
value=2.500
rarity=U
type=Artifact
cost={4}
ability=At the beginning of your upkeep, sacrifice SN.
timing=artifact
requires_groovy_code
oracle=At the beginning of your upkeep, sacrifice Goblin Boom Keg. When Goblin Boom Keg is put into a graveyard from the battlefield, it deals 3 damage to target creature or player.

Script

[
    new MagicWhenDiesTrigger() {     
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent died) {    
            new MagicEvent(
                permanent,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                this,
                "SN deals 3 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,3));
            });
        }
    }
]
Pushed