aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-15 19:15:49 +0100
committerQAston <none@none>2009-03-15 19:15:49 +0100
commitb7251e2643c67a2e20229bf9f22b774891c92b14 (patch)
treeafaf8a6e0407f9f80371becb18cee82d594bf290 /src
parentf663922a2c9ce3dd9e5d28f402ebd84b69d3b378 (diff)
*Fix crash.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 17ed3ae0694..424cf3ee043 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -4332,8 +4332,9 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
UpdateInterruptMask();
}
- if((Aur->GetSpellProto()->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE)
- && (Aur->GetModifier()->m_auraname != SPELL_AURA_MOD_POSSESS)) //only dummy aura is breakable
+ if(Aur->GetSpellProto()->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE)
+ && Aur->GetModifier()->m_auraname != SPELL_AURA_MOD_POSSESS) //only dummy aura is breakable
+ || (Aur->GetSpellProto()->Mechanic==MECHANIC_KNOCKOUT && Aur->GetModifier()->m_auraname==SPELL_AURA_MOD_STUN))
{
m_ccAuras.remove(Aur);
}