mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10436] Fix typos in invisibility aura handlers
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
ef46d2bd6f
commit
3ff64ef35e
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10435"
|
||||
#define REVISION_NR "10436"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue