diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index bce2e51f..5f705e90 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -548,8 +548,8 @@ AiPlayerbot.PvpProhibitedZoneIds = "2255,656,2361,2362,2363,976,35,2268,3425,392 AiPlayerbot.RandomBotSpellIds = "54197" # Level diff between random bots and nearby creatures for random teleports -AiPlayerbot.randomBotTeleLowerLevel = 3 -AiPlayerbot.randomBotTeleHigerLevel = 1 +AiPlayerbot.RandomBotTeleLowerLevel = 3 +AiPlayerbot.RandomBotTeleHigherLevel = 1 # ID of spell to open lootable chests AiPlayerbot.OpenGoSpell = 6477 diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 02d565c7..db30eda1 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -138,7 +138,7 @@ bool PlayerbotAIConfig::Initialize() randomBotMaxLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotMaxLevel", 80); randomBotLoginAtStartup = sConfigMgr->GetOption("AiPlayerbot.RandomBotLoginAtStartup", true); randomBotTeleLowerLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleLowerLevel", 3); - randomBotTeleHigerLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleHigerLevel", 1); + randomBotTeleHigherLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleHigherLevel", 1); openGoSpell = sConfigMgr->GetOption("AiPlayerbot.OpenGoSpell", 6477); randomChangeMultiplier = sConfigMgr->GetOption("AiPlayerbot.RandomChangeMultiplier", 1.0); diff --git a/src/PlayerbotAIConfig.h b/src/PlayerbotAIConfig.h index 57639f76..94d39147 100644 --- a/src/PlayerbotAIConfig.h +++ b/src/PlayerbotAIConfig.h @@ -76,7 +76,7 @@ class PlayerbotAIConfig bool randomBotJoinBG; bool randomBotAutoJoinBG; bool randomBotLoginAtStartup; - uint32 randomBotTeleLowerLevel, randomBotTeleHigerLevel; + uint32 randomBotTeleLowerLevel, randomBotTeleHigherLevel; bool logInGroupOnly, logValuesPerTick; bool fleeingEnabled; bool summonAtInnkeepersEnabled; diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index e1842de8..16bfa866 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1156,7 +1156,7 @@ void RandomPlayerbotMgr::PrepareTeleportCache() uint32 avg_level = fields[4].Get(); WorldLocation loc(mapId, x, y, z, 0); collected_locs++; - for (int32 level = (int32)avg_level - (int32)sPlayerbotAIConfig->randomBotTeleHigerLevel; level <= (int32)avg_level + (int32)sPlayerbotAIConfig->randomBotTeleLowerLevel; level++) { + for (int32 level = (int32)avg_level - (int32)sPlayerbotAIConfig->randomBotTeleHigherLevel; level <= (int32)avg_level + (int32)sPlayerbotAIConfig->randomBotTeleLowerLevel; level++) { if (level < 1 || level > maxLevel) { continue; }