[7013] Rename recently added function for consistent with already existed. Use it for old cases.

This commit is contained in:
VladimirMangos 2009-01-03 14:24:26 +03:00
parent ba5e3dabc6
commit 7e5c17b6c3
5 changed files with 13 additions and 11 deletions

View file

@ -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;
}