mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Bots] Cleanup Spell Settings Commands (#2607)
* [Bots] Cleanup Spell Settings Commands * Update Bot DB version * typo
This commit is contained in:
+2
-2
@@ -10696,7 +10696,7 @@ void Bot::ListBotSpells(uint8 min_level)
|
||||
return;
|
||||
}
|
||||
|
||||
if (AIBot_spells.empty()) {
|
||||
if (AIBot_spells.empty() && AIBot_spells_enforced.empty()) {
|
||||
bot_owner->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
@@ -10710,7 +10710,7 @@ void Bot::ListBotSpells(uint8 min_level)
|
||||
auto spell_count = 0;
|
||||
auto spell_number = 1;
|
||||
|
||||
for (const auto& s : AIBot_spells) {
|
||||
for (const auto& s : (AIBot_spells.size() > AIBot_spells_enforced.size()) ? AIBot_spells : AIBot_spells_enforced) {
|
||||
auto b = bot_spell_settings.find(s.spellid);
|
||||
if (b == bot_spell_settings.end() && s.minlevel >= min_level) {
|
||||
bot_owner->Message(
|
||||
|
||||
Reference in New Issue
Block a user