From a18512cbb518c083fcdb67f6187c8528246530f1 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 12 Feb 2023 01:16:51 -0500 Subject: [PATCH] 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) --- Source/Game/Entities/GameObject/GameObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/GameObject/GameObject.cs b/Source/Game/Entities/GameObject/GameObject.cs index e87b48abb..54e6c1965 100644 --- a/Source/Game/Entities/GameObject/GameObject.cs +++ b/Source/Game/Entities/GameObject/GameObject.cs @@ -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(GetMap().GetPoolData(), poolid, GetSpawnId()); else AddObjectToRemoveList();