From 71cf3ab737fbc50e119c7d536d1f6f79ef09890e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 28 Mar 2026 16:56:15 -0700 Subject: [PATCH] debug: log CMSG_CAST_SPELL packet size to verify format --- 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 65a20491..29b7b7fd 100644 --- a/src/game/spell_handler.cpp +++ b/src/game/spell_handler.cpp @@ -323,6 +323,8 @@ void SpellHandler::castSpell(uint32_t spellId, uint64_t targetGuid) { auto packet = owner_.packetParsers_ ? owner_.packetParsers_->buildCastSpell(spellId, target, ++castCount_) : CastSpellPacket::build(spellId, target, ++castCount_); + LOG_WARNING("CMSG_CAST_SPELL: spellId=", spellId, " target=0x", std::hex, target, std::dec, + " castCount=", static_cast(castCount_), " packetSize=", packet.getSize()); owner_.socket->send(packet); LOG_INFO("Casting spell: ", spellId, " on 0x", std::hex, target, std::dec);