[8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
NoFantasy 2009-06-18 19:10:18 +04:00 committed by VladimirMangos
parent 23c96493b1
commit 68848314e2
9 changed files with 33 additions and 23 deletions

View file

@ -1580,6 +1580,13 @@ void Creature::Respawn()
}
}
void Creature::ForcedDespawn()
{
setDeathState(JUST_DIED);
RemoveCorpse();
SetHealth(0); // just for nice GM-mode view
}
bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo)
{
if (!spellInfo)