mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Groups/Loot): include bank when checking unique item cap for rolls (#26367)
This commit is contained in:
@@ -997,7 +997,7 @@ bool CanRollOnItem(LootItem const& item, Player const* player, Loot* loot)
|
|||||||
if (!proto)
|
if (!proto)
|
||||||
return false;
|
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))
|
if ((proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user