mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
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.
This commit is contained in:
parent
7a4347dbac
commit
6878f120e9
1 changed files with 1 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue