diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 6e9d7fae..1a25d948 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -412,7 +412,7 @@ AiPlayerbot.MinRandomBotReviveTime = 60 AiPlayerbot.MaxRandomBotReviveTime = 300 AiPlayerbot.MinRandomBotTeleportInterval = 3600 AiPlayerbot.MaxRandomBotTeleportInterval = 18000 -AiPlayerbot.RandomBotInWorldWithRotaionDisabled = 31104000 +AiPlayerbot.RandomBotInWorldWithRotationDisabled = 31104000 # How far random bots are teleported after death AiPlayerbot.RandomBotTeleportDistance = 100 diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 6bc26946..5b58949c 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -130,7 +130,7 @@ bool PlayerbotAIConfig::Initialize() maxRandomBotReviveTime = sConfigMgr->GetOption("AiPlayerbot.MaxRandomBotReviveTime", 5 * MINUTE); minRandomBotTeleportInterval = sConfigMgr->GetOption("AiPlayerbot.MinRandomBotTeleportInterval", 1 * HOUR); maxRandomBotTeleportInterval = sConfigMgr->GetOption("AiPlayerbot.MaxRandomBotTeleportInterval", 5 * HOUR); - randomBotInWorldWithRotaionDisabled = sConfigMgr->GetOption("AiPlayerbot.RandomBotInWorldWithRotaionDisabled", 1 * YEAR); + randomBotInWorldWithRotationDisabled = sConfigMgr->GetOption("AiPlayerbot.RandomBotInWorldWithRotationDisabled", 1 * YEAR); randomBotTeleportDistance = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleportDistance", 100); randomBotsPerInterval = sConfigMgr->GetOption("AiPlayerbot.RandomBotsPerInterval", MINUTE); minRandomBotsPriceChangeInterval = sConfigMgr->GetOption("AiPlayerbot.MinRandomBotsPriceChangeInterval", 2 * HOUR); diff --git a/src/PlayerbotAIConfig.h b/src/PlayerbotAIConfig.h index cbe18cd7..4447fc17 100644 --- a/src/PlayerbotAIConfig.h +++ b/src/PlayerbotAIConfig.h @@ -88,7 +88,7 @@ class PlayerbotAIConfig uint32 minRandomBotChangeStrategyTime, maxRandomBotChangeStrategyTime; uint32 minRandomBotReviveTime, maxRandomBotReviveTime; uint32 minRandomBotTeleportInterval, maxRandomBotTeleportInterval; - uint32 randomBotInWorldWithRotaionDisabled; + uint32 randomBotInWorldWithRotationDisabled; uint32 minRandomBotPvpTime, maxRandomBotPvpTime; uint32 randomBotsPerInterval; uint32 minRandomBotsPriceChangeInterval, maxRandomBotsPriceChangeInterval; diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 299a67cd..afb0b3a3 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -501,7 +501,7 @@ uint32 RandomPlayerbotMgr::AddRandomBots() for (uint32 &guid : guids) { uint32 add_time = sPlayerbotAIConfig->enableRotation ? urand(sPlayerbotAIConfig->minRandomBotInWorldTime, sPlayerbotAIConfig->maxRandomBotInWorldTime) : - sPlayerbotAIConfig->randomBotInWorldWithRotaionDisabled; + sPlayerbotAIConfig->randomBotInWorldWithRotationDisabled; SetEventValue(guid, "add", 1, add_time); SetEventValue(guid, "logout", 0, 0);