From fdfb4807850a9a49b5a7cf576baec4c6da66217c Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 18 Feb 2026 04:17:11 -0800 Subject: [PATCH] Turtle chest interaction: retry GAMEOBJECT_USE together with LOOT --- src/game/game_handler.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 226b9310..72440f3b 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -338,8 +338,10 @@ void GameHandler::update(float deltaTime) { it->timer -= deltaTime; if (it->timer <= 0.0f) { if (it->remainingRetries > 0 && state == WorldState::IN_WORLD && socket) { - auto packet = LootPacket::build(it->guid); - socket->send(packet); + auto usePacket = GameObjectUsePacket::build(it->guid); + socket->send(usePacket); + auto lootPacket = LootPacket::build(it->guid); + socket->send(lootPacket); --it->remainingRetries; it->timer = 0.20f; } @@ -8113,10 +8115,10 @@ void GameHandler::interactWithGameObject(uint64_t guid) { } } if (shouldSendLoot) { - LOG_INFO("GameObject interaction: sent CMSG_LOOT for guid=0x", std::hex, guid, std::dec, + LOG_INFO("GameObject interaction: sent CMSG_GAMEOBJECT_USE + CMSG_LOOT for guid=0x", std::hex, guid, std::dec, " mailbox=", (isMailbox ? 1 : 0)); lootTarget(guid); - pendingGameObjectLootRetries_.push_back(PendingLootRetry{guid, 0.20f, 1}); + pendingGameObjectLootRetries_.push_back(PendingLootRetry{guid, 0.20f, 2}); } }