Menu

Submission for Pooling Venom

74

Config

name=Pooling Venom
image=http://mtgimage.com/card/pooling%20venom.jpg
value=2.500
rarity=U
type=Enchantment
subtype=Aura
cost={1}{B}
timing=aura
enchant=destroy,neg land
requires_groovy_code=Pooling Venom;Corrupted Roots
oracle=Enchant land. Whenever enchanted land becomes tapped, its controller loses 2 life. {3}{B}: Destroy enchanted land.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Destroy"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source, "{3}{B}")
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                source.getEnchantedPermanent(),
                this,
                "Destroy RN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicDestroyAction(event.getRefPermanent()));
        }
    }
]
Pushed