From b9736c8bbfe7b6833dda8a8aff8010a79284e2d7 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 26 Jan 2021 05:38:49 +0100 Subject: [PATCH] Core/Loot: fixed displaying random suffix enchantments in loot windows --- src/server/game/Loot/Loot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp index 0ada2fc904f..a21505a9ad0 100644 --- a/src/server/game/Loot/Loot.cpp +++ b/src/server/game/Loot/Loot.cpp @@ -615,8 +615,8 @@ ByteBuffer& operator<<(ByteBuffer& b, LootItem const& li) b << uint32(li.itemid); b << uint32(li.count); // nr of items of this type b << uint32(ASSERT_NOTNULL(sObjectMgr->GetItemTemplate(li.itemid))->GetDisplayID()); - b << uint32(li.randomSuffix); - b << uint32(li.randomPropertyId.Id); + b << int32(li.randomSuffix); + b << int32(li.randomPropertyId.Type == ItemRandomEnchantmentType::Property ? li.randomPropertyId.Id : -int32(li.randomPropertyId.Id)); //b << uint8(0); // slot type - will send after this function call return b; }