Menu

Submission for Sphere of Grace

49

Config

name=Sphere of Grace
image=http://mtgimage.com/card/sphere%20of%20grace.jpg
value=2.500
rarity=U
type=Enchantment
cost={3}{W}
timing=enchantment
requires_groovy_code
oracle=If a black source would deal damage to you, prevent 2 of that damage.

Script

[
    new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.PREVENT_DAMAGE) {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            if (permanent.isController(damage.getTarget()) && damage.getSource().hasColor(MagicColor.Black)) {
                // Prevention effect.
                damage.prevent(2);
            }
            return MagicEvent.NONE;
        }
    }
]
Pushed