[11542] Replace partly spell list by recently added function in one more place.

This commit is contained in:
VladimirMangos 2011-05-26 04:20:36 +04:00
parent 6b66f12a67
commit 81984732a3
2 changed files with 5 additions and 5 deletions

View file

@ -4891,8 +4891,8 @@ void Aura::HandleModMechanicImmunity(bool apply, bool /*Real*/)
{ {
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());

View file

@ -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__