*Use MECHANIC to check if an aura is a movement impairing aura. By thenecromancer

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-26 14:20:59 -05:00
parent f74a134ed6
commit b68aa14ef1

View File

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