Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category.

# Conflicts:
#	src/server/game/Groups/Group.cpp
This commit is contained in:
Wyrserth authored and Ovahlord committed 2022-09-12 09:15:25 +02:00
1 parent b5e177edbc
commit 3fe6b49575
1 file changed
+1 -1
+1 -1
View File
@@ -1033,7 +1033,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player)
return false;
uint32 itemCount = player->GetItemCount(item.itemid);
if ((proto->GetMaxCount() > 0 && static_cast<int32>(itemCount) >= proto->GetMaxCount()) || (player->CanEquipUniqueItem(proto) != EQUIP_ERR_OK))
if (proto->GetMaxCount() > 0 && static_cast<int32>(itemCount) >= proto->GetMaxCount())
return false;
if (!item.AllowedForPlayer(player))