mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 07:17:57 +00:00
fix(DB/GameObject): correct Higher Learning pooled respawn cycle (#26439)
This commit is contained in:
@@ -962,7 +962,10 @@ void GameObject::DespawnOrUnsummon(Milliseconds delay /*= 0ms*/, Seconds forceRe
|
||||
}
|
||||
|
||||
uint32 poolid = m_spawnId ? sPoolMgr->IsPartOfAPool<GameObject>(m_spawnId) : 0;
|
||||
if (poolid)
|
||||
|
||||
// Keep the current pooled gameobject reserved until its respawn timer expires.
|
||||
// GameObject::Update() will update the pool when the object is ready to respawn.
|
||||
if (poolid && !m_respawnTime)
|
||||
{
|
||||
sPoolMgr->UpdatePool<GameObject>(poolid, m_spawnId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user