botActiveAlone; added new botActiveAlone confguration option (#783)

This commit is contained in:
bash
2024-12-15 20:04:24 +01:00
committed by GitHub
parent 183bf7ae8e
commit 19cda1068d
4 changed files with 12 additions and 0 deletions

View File

@@ -4172,6 +4172,15 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
}
}
// bot map has active players.
if (sPlayerbotAIConfig->BotActiveAloneForceWhenInMap)
{
if (HasRealPlayers(bot->GetMap()))
{
return true;
}
}
// bot zone has active players.
if (sPlayerbotAIConfig->BotActiveAloneForceWhenInZone)
{