aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 14:20:59 -0500
committermegamage <none@none>2009-08-26 14:20:59 -0500
commitb68aa14ef17c6f980eff6a64290bacb7b925cde4 (patch)
tree68552735c3c0d3481f641897ab4b40edd96be953 /src/game/Unit.cpp
parentf74a134ed6205fc177e9416e5b0ca1b4dccbd246 (diff)
*Use MECHANIC to check if an aura is a movement impairing aura. By thenecromancer
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 992ad255688..67a7d9a5d6f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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)