From 4ff59c6f769201af49c98adac2b9b2e1f3607ceb Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 28 Mar 2026 16:41:15 -0700 Subject: [PATCH] debug: log castSpell calls and SMSG_CAST_RESULT at WARNING level --- src/game/spell_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/spell_handler.cpp b/src/game/spell_handler.cpp index 3743d2db..5e926d91 100644 --- a/src/game/spell_handler.cpp +++ b/src/game/spell_handler.cpp @@ -204,6 +204,7 @@ bool SpellHandler::isTargetCastInterruptible() const { } void SpellHandler::castSpell(uint32_t spellId, uint64_t targetGuid) { + LOG_WARNING("castSpell: spellId=", spellId, " target=0x", std::hex, targetGuid, std::dec); // Attack (6603) routes to auto-attack instead of cast if (spellId == 6603) { uint64_t target = targetGuid != 0 ? targetGuid : owner_.targetGuid; @@ -2055,6 +2056,7 @@ void SpellHandler::handleCastResult(network::Packet& packet) { uint32_t castResultSpellId = 0; uint8_t castResult = 0; if (owner_.packetParsers_->parseCastResult(packet, castResultSpellId, castResult)) { + LOG_WARNING("SMSG_CAST_RESULT: spellId=", castResultSpellId, " result=", static_cast(castResult)); if (castResult != 0) { casting_ = false; castIsChannel_ = false; currentCastSpellId_ = 0; castTimeRemaining_ = 0.0f; owner_.lastInteractedGoGuid_ = 0;