mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Pools: Fix handle respawning for nested pools (#31163)
Closes #28524
This commit is contained in:
@@ -377,26 +377,14 @@ void PoolGroup<Pool>::Spawn1Object(PoolObject* obj)
|
||||
sPoolMgr->SpawnPool(obj->guid);
|
||||
}
|
||||
|
||||
// Method that does the respawn job on the specified creature
|
||||
template <>
|
||||
void PoolGroup<Creature>::ReSpawn1Object(PoolObject* obj)
|
||||
// Method that does the respawn job on the specified object
|
||||
template <typename T>
|
||||
void PoolGroup<T>::ReSpawn1Object(PoolObject* obj)
|
||||
{
|
||||
Despawn1Object(obj->guid, false, false);
|
||||
Spawn1Object(obj);
|
||||
}
|
||||
|
||||
// Method that does the respawn job on the specified gameobject
|
||||
template <>
|
||||
void PoolGroup<GameObject>::ReSpawn1Object(PoolObject* obj)
|
||||
{
|
||||
Despawn1Object(obj->guid, false, false);
|
||||
Spawn1Object(obj);
|
||||
}
|
||||
|
||||
// Nothing to do for a child Pool
|
||||
template <>
|
||||
void PoolGroup<Pool>::ReSpawn1Object(PoolObject* /*obj*/) { }
|
||||
|
||||
template <>
|
||||
void PoolGroup<Creature>::RemoveRespawnTimeFromDB(ObjectGuid::LowType guid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user