mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
botActiveAlone; added new botActiveAlone confguration option (#783)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user