mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7013] Rename recently added function for consistent with already existed. Use it for old cases.
This commit is contained in:
parent
ba5e3dabc6
commit
7e5c17b6c3
5 changed files with 13 additions and 11 deletions
|
|
@ -3803,11 +3803,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue