*Use source guid to check if an aura is persistent.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-27 16:01:10 -05:00
parent 69f6138353
commit d829014920

View File

@@ -1854,21 +1854,20 @@ bool Aura::CanBeSaved() const
bool Aura::IsPersistent() const
{
return IS_DYNAMICOBJECT_GUID(m_sourceGuid);
/*
for(uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if(m_partAuras[i] && m_partAuras[i]->IsPersistent())
return true;
}
return false;
*/
}
bool Aura::IsAreaAura() const
{
for(uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if(m_partAuras[i] && m_partAuras[i]->IsAreaAura())
return true;
}
return false;
}