mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-27 05:23:51 +00:00
debug: log SMSG_SPELL_START to diagnose missing cast bar
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
This commit is contained in:
parent
71cf3ab737
commit
4f2a4e5520
1 changed files with 7 additions and 1 deletions
|
|
@ -847,7 +847,13 @@ void SpellHandler::handleCastFailed(network::Packet& packet) {
|
||||||
|
|
||||||
void SpellHandler::handleSpellStart(network::Packet& packet) {
|
void SpellHandler::handleSpellStart(network::Packet& packet) {
|
||||||
SpellStartData data;
|
SpellStartData data;
|
||||||
if (!owner_.packetParsers_->parseSpellStart(packet, data)) return;
|
if (!owner_.packetParsers_->parseSpellStart(packet, data)) {
|
||||||
|
LOG_WARNING("Failed to parse SMSG_SPELL_START, size=", packet.getSize());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
LOG_WARNING("SMSG_SPELL_START: caster=0x", std::hex, data.casterUnit, std::dec,
|
||||||
|
" spell=", data.spellId, " castTime=", data.castTime,
|
||||||
|
" isPlayer=", (data.casterUnit == owner_.playerGuid));
|
||||||
|
|
||||||
// Track cast bar for any non-player caster
|
// Track cast bar for any non-player caster
|
||||||
if (data.casterUnit != owner_.playerGuid && data.castTime > 0) {
|
if (data.casterUnit != owner_.playerGuid && data.castTime > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue