Menu

Submission for Relic Putrescence

77

Config

name=Relic Putrescence
image=http://mtgimage.com/card/relic%20putrescence.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={2}{B}
timing=aura
enchant=tap,neg artifact
requires_groovy_code
oracle=Enchant artifact. Whenever enchanted artifact becomes tapped, its controller gets a poison counter.

Script

[
    new MagicWhenBecomesTappedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent tapped) {
            final MagicPermanent enchantedArtifact = permanent.getEnchantedPermanent();
            return (enchantedArtifact.isArtifact() && enchantedArtifact==tapped) ?
                new MagicEvent(
                    permanent,
                    tapped.getController(),
                    this,
                    "PN gets a poison counter."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game,final MagicEvent event) {
            game.doAction(new MagicChangePoisonAction(event.getPlayer(),1));
        }
    }
]
Pushed