Skip to content

Commit

Permalink
fix(Core/Loot) fix bug with loot (azerothcore#19882)
Browse files Browse the repository at this point in the history
Try to fix bug with loot
  • Loading branch information
skelUA authored Sep 19, 2024
1 parent a0057b9 commit a196f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Groups/Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a196f7f

Please sign in to comment.