From 0b83523a2c39f776f9871725acd88f6c78b75b19 Mon Sep 17 00:00:00 2001 From: "Bogir[rus]" Date: Fri, 8 Apr 2022 17:37:53 +0500 Subject: [PATCH] fix removed unexisting spells for mounting moved condition for check Guild on top of method --- src/PlayerbotFactory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 5b574013..2cec8b78 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -2021,7 +2021,7 @@ void PlayerbotFactory::InitMounts() fast = { 23225, 23223, 23222 }; break; case RACE_TROLL: - slow = { 8588, 10796, 8592, 472 }; + slow = { 10796, 472 }; fast = { 23241, 23242, 23243 }; break; case RACE_DRAENEI: @@ -2412,15 +2412,15 @@ void PlayerbotFactory::InitInventoryEquip() void PlayerbotFactory::InitGuild() { + if (bot->GetGuildId()) + return; + bot->SaveToDB(false, false); // add guild tabard if (bot->GetGuildId() && !bot->HasItemCount(5976, 1)) StoreItem(5976, 1); - if (bot->GetGuildId()) - return; - if (sPlayerbotAIConfig->randomBotGuilds.empty()) RandomPlayerbotFactory::CreateRandomGuilds();