fix: Made bots roll in a more reasonable time on group loots. (#1857)

# Description

This PR changes the way loot rolls are being evaluated.

It puts a maximum priority on the loot action so it does not hang for so
long.
This commit is contained in:
Nicolas Lebacq
2025-12-09 18:29:57 +00:00
committed by GitHub
parent bb569b4d39
commit 910b8a9c53
2 changed files with 1 additions and 6 deletions

View File

@@ -1384,9 +1384,6 @@ void PlayerbotAI::DoNextAction(bool min)
else if (bot->isAFK())
bot->ToggleAFK();
Group* group = bot->GetGroup();
PlayerbotAI* masterBotAI = nullptr;
if (master && master->IsInWorld())
{
float distance = sServerFacade->GetDistance2d(bot, master);