[Bug Fix] Bots will now load AAs properly when spawned. (#3544)

* [Bug Fix] Bots will now load AAs properly when spawned.

* formatting

* formatting

* formatting

* formatting

* formatting (for real this time)

* formatting (for real this time)

* Formatting
This commit is contained in:
Aeadoin
2023-08-13 15:57:27 -04:00
committed by GitHub
parent 919a92bda3
commit 9a07142a9b
3 changed files with 13 additions and 5 deletions
+2 -3
View File
@@ -464,7 +464,8 @@ bool BotDatabase::LoadBot(const uint32 bot_id, Bot*& loaded_bot)
l.spells_id,
l.time_spawned,
l.zone_id,
t
t,
l.expansion_bitmask
);
if (loaded_bot) {
@@ -479,8 +480,6 @@ bool BotDatabase::LoadBot(const uint32 bot_id, Bot*& loaded_bot)
loaded_bot->SetStopMeleeLevel(l.stop_melee_level);
loaded_bot->SetExpansionBitmask(l.expansion_bitmask, false);
loaded_bot->SetBotEnforceSpellSetting((l.enforce_spell_settings ? true : false));
loaded_bot->SetBotArcherySetting((l.archery_setting ? true : false));