Menu

Submission for Serra's Boon

18

Config

name=Serra's Boon
image=http://mtgimage.com/card/serra%27s%20boon.jpg
value=2.500
rarity=U
type=Enchantment
subtype=Aura
cost={2}{W}
enchant=pump,creature
timing=aura
requires_groovy_code
oracle=Enchant creature. Enchanted creature gets +1/+2 as long as it's white. Otherwise, it gets -2/-1.

Script

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