*Make sure that any aura (in case of aura remove linked auras for example) won't survive Unit::RemoveAllAuras.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-01-12 00:14:09 +01:00
1 parent 3ddea83ffa
commit 758baae61b
5 files changed
+13 -10

No files matched your search

+9 -6
View File
@@ -4279,13 +4279,16 @@ void Unit::RemoveAreaAurasDueToLeaveWorld()
void Unit::RemoveAllAuras()
{
AuraApplicationMap::iterator aurAppIter = m_appliedAuras.begin();
while (!m_appliedAuras.empty())
_UnapplyAura(aurAppIter, AURA_REMOVE_BY_DEFAULT);
while (!m_appliedAuras.empty() || !m_ownedAuras.empty())
{
AuraApplicationMap::iterator aurAppIter = m_appliedAuras.begin();
while (!m_appliedAuras.empty())
_UnapplyAura(aurAppIter, AURA_REMOVE_BY_DEFAULT);
AuraMap::iterator aurIter = m_ownedAuras.begin();
while (!m_ownedAuras.empty())
RemoveOwnedAura(aurIter);
AuraMap::iterator aurIter = m_ownedAuras.begin();
while (!m_ownedAuras.empty())
RemoveOwnedAura(aurIter);
}
}
void Unit::RemoveArenaAuras(bool onleave)