aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2023-10-29 11:04:02 +0100
committerGitHub <noreply@github.com>2023-10-29 11:04:02 +0100
commit01e684a7b0577d2d9100f8597be30762e80fd7a2 (patch)
tree2641d9feedaac493ac6377e1089c8e3912d3945a /src
parent54b13c7e4cfa8d000fe226be7d478eb961471397 (diff)
Core/Loot: Check bank for unique loot items when determining loot roll eligibility (#29373)
Diffstat (limited to 'src')
-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 4fa1ce16d7c..2913b415618 100644
--- a/src/server/game/Groups/Group.cpp
+++ b/src/server/game/Groups/Group.cpp
@@ -1020,7 +1020,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player)
if (!proto)
return false;
- uint32 itemCount = player->GetItemCount(item.itemid);
+ uint32 itemCount = player->GetItemCount(item.itemid, true);
if (proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount)
return false;