Jump to content

[fixed][10208] Remove all movement impairing effects and loss of control


Guest xarly

Recommended Posts

Trinkets PvP and racial spells which should remove all movement impairing effects and all effects which cause loss of control of the character doesn't work anymore.

Items 44098, 44097, ...

Spells 59752

and for example a warrior casting Bladestorm, can be stunned, etc...

I have tested with clean core + YTDB 556

Any one with same bug? These items and spells are critical for PvP

Link to comment
Share on other sites

Here's a patch for you guys.

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f177bb4..c077876 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -10400,9 +10400,10 @@ void Unit::RemoveAurasAtMechanicImmunity(uint32 mechMask, uint32 exceptSpellId,
            ++iter;
        else if (spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)
            ++iter;
-        else if (iter->second->HasAuraAndMechanicEffectMask(mechMask))
+        else if ((iter->second->GetSpellProto()->Mechanic && (1 << (iter->second->GetSpellProto()->Mechanic-1)) & mechMask)
+            || iter->second->HasAuraAndMechanicEffectMask(mechMask))
        {
-            RemoveAurasDueToSpell(spell->Id);
+            RemoveSpellAuraHolder(iter->second);

            if(auras.empty())
                break;

Tested and works. Written by me.

Link to comment
Share on other sites

  • 6 months later...
  • 3 months later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use