diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 4be0556e3..29906cae5 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4887,15 +4887,15 @@ void Aura::HandleModMechanicImmunity(bool apply, bool /*Real*/) Unit *target = GetTarget(); - if(apply && GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY) + if (apply && GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY) { uint32 mechanic = 1 << (misc-1); - //immune movement impairment and loss of control - if(GetId()==42292 || GetId()==59752 || GetId()==65547) + // immune movement impairment and loss of control (spell data have special structure for mark this case) + if (IsSpellRemoveAllMovementAndControlLossEffects(GetSpellProto())) mechanic=IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK; - target->RemoveAurasAtMechanicImmunity(mechanic,GetId()); + target->RemoveAurasAtMechanicImmunity(mechanic, GetId()); } target->ApplySpellImmune(GetId(),IMMUNITY_MECHANIC,misc,apply); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ffb0469fb..bb5cd4079 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11541" + #define REVISION_NR "11542" #endif // __REVISION_NR_H__