diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index e7826de0..e14601e9 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -1289,7 +1289,7 @@ AiPlayerbot.RandomBotGuildCount = 20 AiPlayerbot.DeleteRandomBotGuilds = 0 # Chance bot chooses RPG (Teleport to random camp for their level) instead of grinding -AiPlayerbot.RandomBotRpgChance = 0.20 #unused now +AiPlayerbot.RandomBotRpgChance = 0.20 # Set randombots movement speed to walking anywhere AiPlayerbot.RandombotsWalkingRPG = 0 diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 8ddf2086..21409f18 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -2620,6 +2620,16 @@ void PlayerbotFactory::InitMounts() for (uint32 type = 0; type < 4; type++) { + bool hasMount = false; + for (uint32 &spell : mounts[bot->getRace()][type]) { + if (bot->HasSpell(spell)) { + hasMount = true; + break; + } + } + if (hasMount) + continue; + if (bot->GetLevel() < secondmount && type == 1) continue;