fix(Groups/Loot): include bank when checking unique item cap for rolls (#26367)
This commit is contained in:
parent
af57d05d1f
commit
66e3a94db4
1 changed files with 1 additions and 1 deletions
|
|
@ -997,7 +997,7 @@ bool CanRollOnItem(LootItem const& item, Player const* player, Loot* loot)
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue