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

This commit is contained in:
Wyrserth
2019-06-29 01:46:10 +02:00
parent 37bcf343e2
commit eb7a6391aa

View File

@@ -1022,7 +1022,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player)
return false;
uint32 itemCount = player->GetItemCount(item.itemid);
if ((proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount) || (player->CanEquipUniqueItem(proto) != EQUIP_ERR_OK))
if (proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount)
return false;
if (!item.AllowedForPlayer(player))