Core/GameObjects: Don't apply pool anti-break hack for gameobjects not using legacy compatibility mode
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f8cc1a120c72fbe355dd33f2757ae95c1f69b14)
This commit is contained in:
@@ -962,7 +962,7 @@ namespace Game.Entities
|
||||
ReplaceAllFlags(goOverride.Flags);
|
||||
|
||||
uint poolid = GetGameObjectData() != null ? GetGameObjectData().poolId : 0;
|
||||
if (poolid != 0)
|
||||
if (m_respawnCompatibilityMode && poolid != 0)
|
||||
Global.PoolMgr.UpdatePool<GameObject>(GetMap().GetPoolData(), poolid, GetSpawnId());
|
||||
else
|
||||
AddObjectToRemoveList();
|
||||
|
||||
Reference in New Issue
Block a user