mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update RandomPlayerbotMgr.cpp
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
#include <climits>
|
||||||
|
|
||||||
#include "AccountMgr.h"
|
#include "AccountMgr.h"
|
||||||
#include "AiFactory.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.",
|
LOG_ERROR("playerbots", "No eligible bots found with level filter {}-{}. Change the level range.",
|
||||||
sPlayerbotAIConfig->randomBotMinLoginLevel, sPlayerbotAIConfig->randomBotMaxLoginLevel);
|
sPlayerbotAIConfig->randomBotMinLoginLevel, sPlayerbotAIConfig->randomBotMaxLoginLevel);
|
||||||
SetEventValue(0, "bot_count", 0, 999999999);
|
SetEventValue(0, "bot_count", 0, INT_MAX);
|
||||||
maxAllowedBotCount = 0;
|
maxAllowedBotCount = 0;
|
||||||
currentBots.clear();
|
currentBots.clear();
|
||||||
levelFilterAdjusted = true;
|
levelFilterAdjusted = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user