Core/Scripts: Added wrapper method for despawning creatures DespawnOrUnsummon
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
+1
-1
@@ -337,7 +337,7 @@ public:
|
||||
DoCast(me->getVictim(), SPELL_GLOBULE_EXPLOSION);
|
||||
|
||||
//despawn
|
||||
me->ForcedDespawn();
|
||||
me->DespawnOrUnsummon();
|
||||
return;
|
||||
}
|
||||
Check_Timer = 500;
|
||||
|
||||
Reference in New Issue
Block a user