[Initialization] Remove duplicate mount init

This commit is contained in:
Yunfan Li
2024-07-24 23:43:16 +08:00
parent 1f7ab72b04
commit a2db0e3ad1
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -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;