[10436] Fix typos in invisibility aura handlers

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
darkstalker 2010-09-03 07:36:50 +03:00 committed by Laise
parent ef46d2bd6f
commit 3ff64ef35e
2 changed files with 3 additions and 3 deletions

View file

@ -3936,7 +3936,7 @@ void Aura::HandleInvisibility(bool apply, bool Real)
target->m_invisibilityMask = 0;
Unit::AuraList const& auras = target->GetAurasByType(SPELL_AURA_MOD_INVISIBILITY);
for(Unit::AuraList::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
target->m_invisibilityMask |= (1 << m_modifier.m_miscvalue);
target->m_invisibilityMask |= (1 << (*itr)->GetModifier()->m_miscvalue);
// only at real aura remove and if not have different invisibility auras.
if(Real && target->m_invisibilityMask == 0)
@ -3970,7 +3970,7 @@ void Aura::HandleInvisibilityDetect(bool apply, bool Real)
target->m_detectInvisibilityMask = 0;
Unit::AuraList const& auras = target->GetAurasByType(SPELL_AURA_MOD_INVISIBILITY_DETECTION);
for(Unit::AuraList::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
target->m_detectInvisibilityMask |= (1 << m_modifier.m_miscvalue);
target->m_detectInvisibilityMask |= (1 << (*itr)->GetModifier()->m_miscvalue);
}
if(Real && target->GetTypeId()==TYPEID_PLAYER)
((Player*)target)->GetCamera().UpdateVisibilityForOwner();

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10435"
#define REVISION_NR "10436"
#endif // __REVISION_NR_H__