From 4a8222f2433d531d7aee014af9a4dc34856b3cbd Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Sat, 18 Feb 2023 17:06:06 -0500 Subject: [PATCH] [Bots] Fix output of ^spells while ^Enforcespellsettings is enabled (#2959) --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 056fcb29b..3f8735b86 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9490,7 +9490,7 @@ void Bot::ListBotSpells(uint8 min_level) auto spell_count = 0; auto spell_number = 1; - for (const auto& s : (AIBot_spells.size() > AIBot_spells_enforced.size()) ? AIBot_spells : AIBot_spells_enforced) { + for (const auto& s : (GetBotEnforceSpellSetting()) ? AIBot_spells_enforced : AIBot_spells) { auto b = bot_spell_settings.find(s.spellid); if (b == bot_spell_settings.end() && s.minlevel >= min_level) { bot_owner->Message(