Menu

Submission for Clutch of Undeath

61

Config

name=Clutch of Undeath
image=http://mtgimage.com/card/clutch%20of%20undeath.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={3}{B}{B}
enchant=pump,creature
timing=aura
requires_groovy_code
oracle=Enchant creature. Enchanted creature gets +3/+3 as long as it's a Zombie. Otherwise, it gets -3/-3.

Script

[
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
            if (permanent.hasSubType(MagicSubType.Zombie)) {
                pt.add(3, 3);
            } else {
                pt.add(-3, -3);
            }
        }
        @Override
        public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return MagicStatic.acceptLinked(game, source, target);
        }
    }
]
Pushed