*Mangos [7013] Rename recently added function for consistent with already existed. Use it for old cases. By VladimirMangos.
--HG-- branch : trunk
This commit is contained in:
1 parent
803a834b0d
commit
b70c57bbd6
5 files changed
+13
-11
No files matched your search
+3
-3
@@ -4012,11 +4012,11 @@ Aura* Unit::GetAura(uint32 spellId, uint32 effindex)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool Unit::isAuraPresent(uint32 spellId)
|
||||
bool Unit::HasAura(uint32 spellId) const
|
||||
{
|
||||
for (int i=0; i<3; ++i)
|
||||
for (int i = 0; i < 3 ; ++i)
|
||||
{
|
||||
AuraMap::iterator iter = m_Auras.find(spellEffectPair(spellId, i));
|
||||
AuraMap::const_iterator iter = m_Auras.find(spellEffectPair(spellId, i));
|
||||
if (iter != m_Auras.end())
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user