From c998ed63353f90eedfef7898af55a10ead802638 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 18 Feb 2026 04:07:47 -0800 Subject: [PATCH] Fix looting of chest-type gameobjects - send CMSG_LOOT after CMSG_GAMEOBJECT_USE for lootable GO types (chest/fishing hole) - keeps mailbox handling unchanged --- src/game/game_handler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 6a6f6d7e..82d3418a 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -8032,6 +8032,11 @@ void GameHandler::interactWithGameObject(uint64_t guid) { if (entity && entity->getType() == ObjectType::GAMEOBJECT) { auto go = std::static_pointer_cast(entity); auto* info = getCachedGameObjectInfo(go->getEntry()); + if (info && (info->type == 3 || info->type == 25)) { + // Lootable objects (e.g., chests/fishing holes) on some cores require + // explicit CMSG_LOOT in addition to CMSG_GAMEOBJECT_USE. + lootTarget(guid); + } if (info && info->type == 19) { LOG_INFO("Mailbox interaction: opening mail UI and requesting mail list"); mailboxGuid_ = guid;