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)
This commit is contained in:
hondacrx
2021-12-24 21:28:30 -05:00
parent b835ecddc1
commit 7ca6823705
+1 -1
View File
@@ -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))