aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Groups/Group.cpp
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-06-29 01:46:10 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-13 00:42:18 +0100
commit5ca9f51033c92f29eb1bc915fcbf785773ed586c (patch)
tree3e7d09a656ce17df04b22bff6fc24a76f0cdacf4 /src/server/game/Groups/Group.cpp
parent841630fcc3d02c5bfa66d748eedd8502519ca71e (diff)
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)
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r--src/server/game/Groups/Group.cpp2
1 files changed, 1 insertions, 1 deletions
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))