fix typo in requested config value

This commit is contained in:
xSparky911x
2024-12-17 03:36:19 -06:00
parent 418a0c4be2
commit e54fc0fb46
3 changed files with 3 additions and 3 deletions

View File

@@ -4203,7 +4203,7 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
} }
// Player is near. Always active. // Player is near. Always active.
if (HasPlayerNearby(sPlayerbotAIConfig->BotActiveAloneWhenInRadius)) if (HasPlayerNearby(sPlayerbotAIConfig->BotActiveAloneForceWhenInRadius))
{ {
return true; return true;
} }

View File

@@ -469,7 +469,7 @@ bool PlayerbotAIConfig::Initialize()
playerbotsXPrate = sConfigMgr->GetOption<int32>("AiPlayerbot.KillXPRate", 1); playerbotsXPrate = sConfigMgr->GetOption<int32>("AiPlayerbot.KillXPRate", 1);
disableDeathKnightLogin = sConfigMgr->GetOption<bool>("AiPlayerbot.DisableDeathKnightLogin", 0); disableDeathKnightLogin = sConfigMgr->GetOption<bool>("AiPlayerbot.DisableDeathKnightLogin", 0);
botActiveAlone = sConfigMgr->GetOption<int32>("AiPlayerbot.BotActiveAlone", 100); botActiveAlone = sConfigMgr->GetOption<int32>("AiPlayerbot.BotActiveAlone", 100);
BotActiveAloneWhenInRadius = sConfigMgr->GetOption<int32>("AiPlayerbot.BotActiveAloneWhenInRadius", 150); BotActiveAloneForceWhenInRadius = sConfigMgr->GetOption<uint32>("AiPlayerbot.BotActiveAloneForceWhenInRadius", 150);
BotActiveAloneForceWhenInZone = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenInZone", 1); BotActiveAloneForceWhenInZone = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenInZone", 1);
BotActiveAloneForceWhenInMap = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenInMap", 0); BotActiveAloneForceWhenInMap = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenInMap", 0);
BotActiveAloneForceWhenIsFriend = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenIsFriend", 1); BotActiveAloneForceWhenIsFriend = sConfigMgr->GetOption<bool>("AiPlayerbot.BotActiveAloneForceWhenIsFriend", 1);

View File

@@ -264,7 +264,7 @@ public:
uint32 playerbotsXPrate; uint32 playerbotsXPrate;
bool disableDeathKnightLogin; bool disableDeathKnightLogin;
uint32 botActiveAlone; uint32 botActiveAlone;
uint32 BotActiveAloneWhenInRadius; uint32 BotActiveAloneForceWhenInRadius;
bool BotActiveAloneForceWhenInZone; bool BotActiveAloneForceWhenInZone;
bool BotActiveAloneForceWhenInMap; bool BotActiveAloneForceWhenInMap;
bool BotActiveAloneForceWhenIsFriend; bool BotActiveAloneForceWhenIsFriend;