*Break stealth when applying all stun/root/confuse/fear/charm/possess auras.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-09 17:40:33 -06:00
parent 16b2db1ab2
commit a1eaec791e
3 changed files with 31 additions and 18 deletions

View File

@@ -1199,8 +1199,7 @@ 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)
if(spellmgr.GetSpellCustomAttr(m_spellInfo->Id) & SPELL_ATTR_CU_AURA_CC)
unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CC);
}
else