Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon

This commit is contained in:
Shauren
2011-01-02 21:33:37 +01:00
parent c2f98606b2
commit 9c0cd63e93
66 changed files with 153 additions and 194 deletions
@@ -338,7 +338,7 @@ public:
Creature* pCreature = Unit::GetCreature((*me), InnderDemon[i]);
if (pCreature && pCreature->isAlive())
{
pCreature->ForcedDespawn();
pCreature->DespawnOrUnsummon();
}
InnderDemon[i] = 0;
}
@@ -390,7 +390,7 @@ public:
if (Demon)
{
if (Creature* pDemon = Unit::GetCreature(*me, Demon))
pDemon->ForcedDespawn();
pDemon->DespawnOrUnsummon();
}
if (pInstance)
pInstance->SetData(DATA_LEOTHERASTHEBLINDEVENT, DONE);
@@ -337,7 +337,7 @@ public:
DoCast(me->getVictim(), SPELL_GLOBULE_EXPLOSION);
//despawn
me->ForcedDespawn();
me->DespawnOrUnsummon();
return;
}
Check_Timer = 500;