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:
1 parent
b5e177edbc
commit
3fe6b49575
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user