From 641390dca2329041a6ef513c2c9f7b28d42d2762 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 16 Oct 2022 15:33:39 +0200 Subject: Core/Loot: Initial support for personal loot in gameobjects (non-instanced content) --- src/server/scripts/Commands/cs_gobject.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 027c72e1c23..4a20f423892 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -528,6 +528,8 @@ public: displayId = gameObjectInfo->displayId; name = gameObjectInfo->name; lootId = gameObjectInfo->GetLootId(); + if (type == GAMEOBJECT_TYPE_CHEST && !lootId) + lootId = gameObjectInfo->chest.chestPersonalLoot; // If we have a real object, send some info about it if (thisGO) -- cgit v1.2.3