mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +00:00
[Cleanup] Remove unnecessary spell_list validation check in botspellsai.cpp (#3244)
# Notes - We check if valid above, no need to do it again.
This commit is contained in:
@@ -3050,7 +3050,6 @@ bool Bot::AI_AddBotSpells(uint32 bot_spell_id) {
|
|||||||
GetLevel()
|
GetLevel()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (spell_list) {
|
|
||||||
debug_msg.append(
|
debug_msg.append(
|
||||||
fmt::format(
|
fmt::format(
|
||||||
" (found, {})",
|
" (found, {})",
|
||||||
@@ -3059,15 +3058,9 @@ bool Bot::AI_AddBotSpells(uint32 bot_spell_id) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
LogAI("[{}]", debug_msg);
|
LogAI("[{}]", debug_msg);
|
||||||
for (const auto &iter : spell_list->entries) {
|
for (const auto &iter: spell_list->entries) {
|
||||||
LogAIDetail("([{}]) [{}]", iter.spellid, spells[iter.spellid].name);
|
LogAIDetail("([{}]) [{}]", iter.spellid, spells[iter.spellid].name);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
debug_msg.append(" (not found)");
|
|
||||||
LogAI("[{}]", debug_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
LogAI("fin (spell list)");
|
LogAI("fin (spell list)");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user