From 9a7770377db21f541e872b3b2b41b807aeb72e71 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Sun, 27 Nov 2022 11:41:10 -0500 Subject: [PATCH] [Bots] Move Bot Spell Loading process to constructor from calcbotstats() (#2583) --- zone/bot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index bdf692def..089977ddd 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -405,6 +405,10 @@ Bot::Bot(uint32 botID, uint32 botOwnerCharacterID, uint32 botSpellsID, double to bot_owner->Message(Chat::White, "&s for '%s'", BotDatabase::fail::LoadBuffs(), GetCleanName()); } + GetBotOwnerDataBuckets(); + GetBotDataBuckets(); + AI_AddBotSpells(GetBotSpellID()); + CalcBotStats(false); hp_regen = CalcHPRegen(); mana_regen = CalcManaRegen(); @@ -9418,10 +9422,6 @@ void Bot::CalcBotStats(bool showtext) { CalcBonuses(); - GetBotOwnerDataBuckets(); - GetBotDataBuckets(); - AI_AddBotSpells(GetBotSpellID()); - if(showtext) { GetBotOwner()->Message(Chat::Yellow, "%s has been updated.", GetCleanName()); GetBotOwner()->Message(Chat::Yellow, "Level: %i HP: %i AC: %i Mana: %i STR: %i STA: %i DEX: %i AGI: %i INT: %i WIS: %i CHA: %i", GetLevel(), max_hp, GetAC(), max_mana, GetSTR(), GetSTA(), GetDEX(), GetAGI(), GetINT(), GetWIS(), GetCHA());