Update RandomPlayerbotMgr.cpp

This commit is contained in:
NoxMax
2025-10-01 13:16:00 +08:00
committed by GitHub
parent c8f32569a8
commit 25726f54b1

View File

@@ -13,6 +13,7 @@
#include <ctime>
#include <iomanip>
#include <random>
#include <climits>
#include "AccountMgr.h"
#include "AiFactory.h"
@@ -426,7 +427,7 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/)
{
LOG_ERROR("playerbots", "No eligible bots found with level filter {}-{}. Change the level range.",
sPlayerbotAIConfig->randomBotMinLoginLevel, sPlayerbotAIConfig->randomBotMaxLoginLevel);
SetEventValue(0, "bot_count", 0, 999999999);
SetEventValue(0, "bot_count", 0, INT_MAX);
maxAllowedBotCount = 0;
currentBots.clear();
levelFilterAdjusted = true;