mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*Use MECHANIC to check if an aura is a movement impairing aura. By thenecromancer
--HG-- branch : trunk
This commit is contained in:
@@ -542,6 +542,9 @@ void Unit::AutoRotate(uint32 time)
|
||||
|
||||
void Unit::RemoveMovementImpairingAuras()
|
||||
{
|
||||
RemoveAurasWithMechanic((1<<MECHANIC_SNARE)|(1<<MECHANIC_ROOT));
|
||||
return;
|
||||
|
||||
for(AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end();)
|
||||
{
|
||||
if(spellmgr.GetSpellCustomAttr(iter->second->GetId()) & SPELL_ATTR_CU_MOVEMENT_IMPAIR)
|
||||
|
||||
Reference in New Issue
Block a user