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
@@ -243,7 +243,7 @@ class mob_tempest_minion : public CreatureScript
if (overchargedAura->GetStackAmount() == 10)
{
DoCast(me, SPELL_OVERCHARGED_BLAST);
me->ForcedDespawn();
me->DespawnOrUnsummon();
DoScriptText(EMOTE_MINION_RESPAWN, me);
}
}
@@ -207,7 +207,7 @@ public:
if (killTimer <= diff)
{
if (!UpdateVictim())
me->ForcedDespawn();
me->DespawnOrUnsummon();
killTimer = 10000;
}
else