This is the talk page for discussing improvements to the Anti-Magic Ward article. |
---|
|
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:
if (GetHasEffects(stEvent.oTarget, EFFECT_TYPE_INVALID, ABILITY_SPELL_ANTIMAGIC_WARD) == FALSE)
{
//original code
}
else
{
UI_DisplayMessage(stEvent.oTarget, UI_MESSAGE_SPELL_IMMUNITY);
}
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)
I believe that stating "Casting this spell while having the Power of Blood spell Bloody Grasp sustained makes the health drain go away." isn't appropriate since Bloody Grasp isn't a sustained spell, but instead, Bloody Grasp's health loss when casted is avoided if the caster is under the effect of Anti-Magic Ward.--JayDea (talk) 07:36, August 12, 2011 (UTC)