From 5ca9f51033c92f29eb1bc915fcbf785773ed586c Mon Sep 17 00:00:00 2001 From: Wyrserth Date: Sat, 29 Jun 2019 01:46:10 +0200 Subject: Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category. (cherry picked from commit eb7a6391aafa5e618b2a565f0c2cfc2516dcee7e) --- src/server/game/Groups/Group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 324b0f44f27..9a2fc7be82d 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -1031,7 +1031,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player) return false; uint32 itemCount = player->GetItemCount(item.itemid); - if ((proto->GetMaxCount() > 0 && itemCount >= proto->GetMaxCount()) || (player->CanEquipUniqueItem(proto) != EQUIP_ERR_OK)) + if (proto->GetMaxCount() > 0 && itemCount >= proto->GetMaxCount()) return false; if (!item.AllowedForPlayer(player)) -- cgit v1.2.3