*Fix demonic circle - original patch by Astellar

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-06-06 22:11:33 +02:00
1 parent 745a86cdf1
commit efbf911026
4 files changed
+79 -2

No files matched your search

+7 -1
View File
@@ -5669,7 +5669,13 @@ void Spell::EffectSummonObject(uint32 i)
if( m_caster )
obj = m_caster->GetMap()->GetGameObject(guid);
if(obj) obj->Delete();
if(obj)
{
// Recast case - null spell id to make auras not be removed on object remove from world
if (m_spellInfo->Id == obj->GetSpellId())
obj->SetSpellId(0);
obj->Delete();
}
m_caster->m_ObjectSlot[slot] = 0;
}