Talk:Anti-Magic Ward

Two problems with this spell:

1) Force Field immunity doesn't work properly. The engine will display the UI "Spell Immunity" message, but the force field is still created around the spell-warded target most of the time.

2) The spell does not grant immunity to spells' secondary effects. For example, it does not protect from freezing/movement speed decrease applied by Winter's Grasp. This is not right, as the spell description says that this spell wards you against all spells AND spell EFFECTS, not just the primary damage effect. May not protect from the Fireball secondary effect (Knockdown) etc., though verification is required, I only tested Winter's Grasp. I also wonder if Drain Life works properly when a warded target is targeted - the caster may still be healed, even if no damage is taken by the target. A similar bug occurs when casting Drain Life on a target in a Force Field.

Some technical information for those acquainted with the toolset:

As far as I understand, the EFFECT_TYPE_SPELL_WARD effect is hard-coded into the engine, along with all its bugs, so in order to fix, individual spell scripts have to be adjusted to check for the presence of the ABILITY_SPELL_ANTIMAGIC_WARD effect, if it's present, do not apply any spell effects, either primary or secondary. Enclose the entire code in the following wrapper:

Do this for Force Field (ABILITY_SPELL_WALL_OF_FORCE), Winter's Grasp (ABILITY_SPELL_WINTERS_GRASP) etc. Most scripts are located in spell_aoe_instant.nss and spell_singletarget.nss. WRFan (talk) 02:39, May 30, 2010 (UTC)