[c12577] Avoid creature not respawning when not looted.

This commit is contained in:
Cyberium 2013-05-31 10:13:54 +01:00 committed by Antz
parent 1634ad38dc
commit f34e07ae9f
2 changed files with 2 additions and 1 deletions

View file

@ -1301,6 +1301,7 @@ bool Creature::LoadFromDB(uint32 guidlow, Map* map)
m_respawnradius = data->spawndist;
m_respawnDelay = data->spawntimesecs;
m_corpseDelay = std::min(m_respawnDelay * 9 / 10, m_corpseDelay); // set corpse delay to 90% of the respawn delay
m_isDeadByDefault = data->is_dead;
m_deathState = m_isDeadByDefault ? DEAD : ALIVE;