diff options
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 56c7ce8ef75..a099bdec797 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1854,6 +1854,13 @@ void Creature::Respawn(bool force) SetToNotify(); } +void Creature::ForcedDespawn() +{ + setDeathState(JUST_DIED); + RemoveCorpse(); + SetHealth(0); // just for nice GM-mode view +} + bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo) { if (!spellInfo) |