mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Fix unique equip init and bots login
This commit is contained in:
@@ -370,7 +370,7 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/)
|
||||
break;
|
||||
}
|
||||
|
||||
if (loginBots)
|
||||
if (loginBots && botLoading.empty())
|
||||
{
|
||||
loginBots += updateBots;
|
||||
loginBots = std::min(loginBots, maxNewBots);
|
||||
@@ -1041,6 +1041,9 @@ bool RandomPlayerbotMgr::ProcessBot(uint32 bot)
|
||||
|
||||
SetEventValue(bot, "login", 0, 0);
|
||||
|
||||
if (!player->IsInWorld())
|
||||
return false;
|
||||
|
||||
if (player->GetGroup() || player->HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user