fix(Core/Loot) fix bug with loot (#19882)

Try to fix bug with loot
This commit is contained in:
skelUA
2024-09-19 16:11:31 +03:00
committed by GitHub
parent a0057b9e90
commit a196f7f28a

View File

@@ -994,7 +994,7 @@ bool CanRollOnItem(LootItem const& item, Player const* player, Loot* loot)
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, loot->sourceWorldObjectGUID))