*Correct some trap proc checks (do not threat trap cast as triggered)

*Fix a typo causing freeze.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-07-30 19:07:51 +02:00
1 parent d193b687e8
commit a2701d589d
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -4229,7 +4229,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
{
bool canBreak = false;
// Get mask of all aurastates from remaining auras
for(AuraStateAurasMap::iterator itr = m_auraStateAuras.lower_bound(auraState); itr != m_auraStateAuras.upper_bound(auraState) || !(auraStateFound && canBreak);)
for(AuraStateAurasMap::iterator itr = m_auraStateAuras.lower_bound(auraState); itr != m_auraStateAuras.upper_bound(auraState) && !(auraStateFound && canBreak);)
{
if (itr->second == Aur)
{