Menu

Submission for Urza's Armor

318

Config

name=Urza's Armor
image=http://mtgimage.com/card/urza%27s%20armor.jpg
value=2.500
rarity=U
type=Artifact
cost={6}
timing=artifact
requires_groovy_code
oracle=If a source would deal damage to you, prevent 1 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())) {
                // Prevention effect.
                damage.prevent(1);
            }
            return MagicEvent.NONE;
        }
    }
]
Pushed