mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Initialization] Remove duplicate mount init
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user