aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-16 17:42:29 -0600
committermegamage <none@none>2008-11-16 17:42:29 -0600
commitc95cb1003a949a706949db63a3eaace955459899 (patch)
treebe3cc3a7903f6574a4ab8279e2506b5cd6419adb
parent2351a737b5d6aedb55b71a22a6dfbd2a47822198 (diff)
*Do not let CC spells interrupt themselves.
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp3
-rw-r--r--src/game/Unit.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 64e9ba04bcc..da6d67a3c6c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -996,6 +996,9 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
}
unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_HITBYSPELL);
+ //TODO: find a better way to judge CC auras
+ if(m_spellInfo->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE)
+ unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CC);
}
else
{
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index ade913d8c26..a6dae99b7ef 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -3782,7 +3782,6 @@ bool Unit::AddAura(Aura *Aur)
if(Aur->GetSpellProto()->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE)
{
m_ccAuras.push_back(Aur);
- RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CC);
}
}