mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11542] Replace partly spell list by recently added function in one more place.
This commit is contained in:
parent
6b66f12a67
commit
81984732a3
2 changed files with 5 additions and 5 deletions
|
|
@ -4887,15 +4887,15 @@ void Aura::HandleModMechanicImmunity(bool apply, bool /*Real*/)
|
||||||
|
|
||||||
Unit *target = GetTarget();
|
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);
|
uint32 mechanic = 1 << (misc-1);
|
||||||
|
|
||||||
//immune movement impairment and loss of control
|
// immune movement impairment and loss of control (spell data have special structure for mark this case)
|
||||||
if(GetId()==42292 || GetId()==59752 || GetId()==65547)
|
if (IsSpellRemoveAllMovementAndControlLossEffects(GetSpellProto()))
|
||||||
mechanic=IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK;
|
mechanic=IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK;
|
||||||
|
|
||||||
target->RemoveAurasAtMechanicImmunity(mechanic,GetId());
|
target->RemoveAurasAtMechanicImmunity(mechanic, GetId());
|
||||||
}
|
}
|
||||||
|
|
||||||
target->ApplySpellImmune(GetId(),IMMUNITY_MECHANIC,misc,apply);
|
target->ApplySpellImmune(GetId(),IMMUNITY_MECHANIC,misc,apply);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11541"
|
#define REVISION_NR "11542"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue