mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix missing armor in WotLK item tooltips and character stats
SMSG_ITEM_QUERY_SINGLE_RESPONSE in WotLK 3.3.5a sends BuyCount as a separate field before BuyPrice. The parser was skipping only one of the two fields, shifting every subsequent read by 4 bytes. This caused statsCount to be read from ContainerSlots (always 0 for non-bags) so no stat pairs were parsed, and the armor field was read from the wrong offset in the damage block — leaving all stat bonuses and armor at 0. Also moved armor above stat bonuses in the item tooltip to match WoW's canonical tooltip layout (armor, then green stat lines).
This commit is contained in:
parent
d7692ab88e
commit
764f2b8edc
2 changed files with 7 additions and 4 deletions
|
|
@ -2086,6 +2086,7 @@ bool ItemQueryResponseParser::parse(network::Packet& packet, ItemQueryResponseDa
|
|||
|
||||
packet.readUInt32(); // Flags
|
||||
packet.readUInt32(); // Flags2
|
||||
packet.readUInt32(); // BuyCount (WotLK: separate from BuyPrice)
|
||||
packet.readUInt32(); // BuyPrice
|
||||
data.sellPrice = packet.readUInt32(); // SellPrice
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue