mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Loot: fixed displaying random suffix enchantments in loot windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user