fix(repair): process item durability updates even when entity missing from manager

handleValuesUpdate silently dropped VALUES updates for item GUIDs not in
entityManager, causing repair-all durability changes to be lost. Fall
through to updateItemOnValuesUpdate for items tracked in onlineItems_.
This commit is contained in:
Kelsi 2026-04-05 03:15:03 -07:00
parent 0e308cf5a1
commit 1dd1a431f4
2 changed files with 15 additions and 2 deletions

View file

@ -1043,6 +1043,8 @@ void InventoryHandler::repairAll(uint64_t vendorGuid, bool useGuildBank) {
packet.writeUInt64(0);
packet.writeUInt8(useGuildBank ? 1 : 0);
owner_.socket->send(packet);
LOG_INFO("Sent CMSG_REPAIR_ITEM repairAll vendor=0x", std::hex, vendorGuid,
std::dec, " guildBank=", useGuildBank ? 1 : 0);
}
void InventoryHandler::autoEquipItemBySlot(int backpackIndex) {