From 6878f120e9c6ef9ed0ddf83f8ad0a41484c11531 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 13 Mar 2026 05:03:50 -0700 Subject: [PATCH] fix: clear lastInteractedGoGuid_ in handleCastFailed path SMSG_CAST_FAILED is a direct rejection (e.g. insufficient range, no mana) before the cast starts. Missing this path meant a stale gather-node guid could survive into the next timed cast if SMSG_CAST_FAILED fired instead of SMSG_SPELL_FAILURE. --- src/game/game_handler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index af089d93..05feb17b 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -16164,6 +16164,7 @@ void GameHandler::handleCastFailed(network::Packet& packet) { castIsChannel = false; currentCastSpellId = 0; castTimeRemaining = 0.0f; + lastInteractedGoGuid_ = 0; // Stop precast sound — spell failed before completing if (auto* renderer = core::Application::getInstance().getRenderer()) {