From 7ca6823705ec3afaac1a8982868a022e3a404f47 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 24 Dec 2021 21:28:30 -0500 Subject: [PATCH] Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category. Port From (https://github.com/TrinityCore/TrinityCore/commit/5ca9f51033c92f29eb1bc915fcbf785773ed586c) --- Source/Game/Groups/Group.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Groups/Group.cs b/Source/Game/Groups/Group.cs index 679e94f97..ac1de6ba3 100644 --- a/Source/Game/Groups/Group.cs +++ b/Source/Game/Groups/Group.cs @@ -973,7 +973,7 @@ namespace Game.Groups return false; uint itemCount = player.GetItemCount(item.itemid); - if ((proto.GetMaxCount() > 0 && itemCount >= proto.GetMaxCount()) || (player.CanEquipUniqueItem(proto) != InventoryResult.Ok)) + if (proto.GetMaxCount() > 0 && itemCount >= proto.GetMaxCount()) return false; if (!item.AllowedForPlayer(player))