aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-06-29 01:46:10 +0200
committerWyrserth <wyrserth@protonmail.com>2019-06-29 01:46:54 +0200
commiteb7a6391aafa5e618b2a565f0c2cfc2516dcee7e (patch)
tree6ac1e5f511243d8324253255a10f0c7ae537747f
parent37bcf343e2dd49acbe1865b1660e80392fab30e4 (diff)
Core/Loot: fix issue that prevented players from rolling for an unique-category item while an equipped item shares the same unique-category.
-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 1291a12f032..2aeab843bf3 100644
--- a/src/server/game/Groups/Group.cpp
+++ b/src/server/game/Groups/Group.cpp
@@ -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))