From 60091015d380120bb5e20c48bc92dcaaa1d4ea6c Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 3 Apr 2023 17:05:03 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary >= 0 checks for procs in botspellsai.cpp (#3242) # Notes - These are always `>= 0` since they're `uint16`. --- zone/botspellsai.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index 228f49aa7..92ffdd1ce 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -3175,20 +3175,14 @@ bool Bot::AI_AddBotSpells(uint32 bot_spell_id) { } } - if (spell_list->attack_proc >= 0) { - attack_proc_spell = spell_list->attack_proc; - proc_chance = spell_list->proc_chance; - } + attack_proc_spell = spell_list->attack_proc; + proc_chance = spell_list->proc_chance; - if (spell_list->range_proc >= 0) { - range_proc_spell = spell_list->range_proc; - rproc_chance = spell_list->rproc_chance; - } + range_proc_spell = spell_list->range_proc; + rproc_chance = spell_list->rproc_chance; - if (spell_list->defensive_proc >= 0) { - defensive_proc_spell = spell_list->defensive_proc; - dproc_chance = spell_list->dproc_chance; - } + defensive_proc_spell = spell_list->defensive_proc; + dproc_chance = spell_list->dproc_chance; //If any casting variables are defined in the current list, ignore those in the parent list. if (