mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[c12577] Avoid creature not respawning when not looted.
This commit is contained in:
parent
1634ad38dc
commit
f34e07ae9f
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue