Skip to content

Commit

Permalink
NPCBots: Ignore group loot threshold for autoloot if the group only h…
Browse files Browse the repository at this point in the history
…as one member

(cherry picked from commit c121cd350cd965f2979d0dec0e008d66eaaabc45)
  • Loading branch information
trickerer committed Dec 12, 2024
1 parent 646b3cf commit 3044f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/AI/NpcBots/bot_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11904,7 +11904,7 @@ uint32 bot_ai::_getLootQualityThreshold() const
{
uint32 lootThreshold;
Group const* gr = master->GetGroup();
if (!gr)
if (!gr || gr->GetFirstMember()->next() == nullptr)
lootThreshold = uint32(MAX_ITEM_QUALITY);
else
{
Expand Down

0 comments on commit 3044f42

Please sign in to comment.