Fix SMSG_RESUME_CAST_BAR: separate from unrelated opcodes in fallthrough group

SMSG_LOOT_LIST, SMSG_COMPLAIN_RESULT, SMSG_ITEM_REFUND_INFO_RESPONSE,
and SMSG_ITEM_ENCHANT_TIME_UPDATE were incorrectly falling through to the
SMSG_RESUME_CAST_BAR handler, causing those packets to be parsed as
cast bar resume data with a completely different wire format.
This commit is contained in:
Kelsi 2026-03-09 20:40:58 -07:00
parent 3f64f81ec0
commit a49c013c89

View file

@ -4730,6 +4730,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
case Opcode::SMSG_ITEM_REFUND_INFO_RESPONSE:
case Opcode::SMSG_ITEM_ENCHANT_TIME_UPDATE:
case Opcode::SMSG_LOOT_LIST:
// Consume — not yet processed
packet.setReadPos(packet.getSize());
break;
case Opcode::SMSG_RESUME_CAST_BAR: {
// packed_guid caster + packed_guid target + uint32 spellId
// + uint32 remainingMs + uint32 totalMs + uint8 schoolMask