From c9221f239cbe49e8b22c59aac4e844ee28ae894e Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 3 Apr 2023 17:02:48 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary botCaster check in Bot::GetDebuffBotSpell() (#3246) # Notes - We already check if `botCaster` is invalid above, no need to do so again. --- zone/botspellsai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index 13079a513..90827f91f 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -2669,7 +2669,7 @@ BotSpell Bot::GetDebuffBotSpell(Bot* botCaster, Mob *tar) { if (!tar || !botCaster) return result; - if (botCaster && botCaster->AI_HasSpells()) { + if (botCaster->AI_HasSpells()) { std::vector botSpellList = botCaster->AIBot_spells; for (int i = botSpellList.size() - 1; i >= 0; i--) {