Bot creation wait time

This commit is contained in:
Yunfan Li
2024-08-25 11:20:33 +08:00
parent 6e5fc18b9b
commit 2c82ea23e0

View File

@@ -538,7 +538,7 @@ void RandomPlayerbotFactory::CreateRandomBots()
{
LOG_INFO("playerbots", "Waiting for {} characters loading into database...", bot_creation);
/* wait for characters load into database, or characters will fail to loggin */
std::this_thread::sleep_for(10s);
std::this_thread::sleep_for(5s + bot_creation * 5ms);
}
for (WorldSession* session : sessionBots)