[Cleanup] Remove unnecessary >= 0 checks for procs in botspellsai.cpp (#3242)

# Notes
- These are always `>= 0` since they're `uint16`.
This commit is contained in:
Alex King 2023-04-03 17:05:03 -04:00 committed by GitHub
parent 470392021b
commit 60091015d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
attack_proc_spell = spell_list->attack_proc; proc_chance = spell_list->proc_chance;
proc_chance = spell_list->proc_chance;
}
if (spell_list->range_proc >= 0) { range_proc_spell = spell_list->range_proc;
range_proc_spell = spell_list->range_proc; rproc_chance = spell_list->rproc_chance;
rproc_chance = spell_list->rproc_chance;
}
if (spell_list->defensive_proc >= 0) { defensive_proc_spell = spell_list->defensive_proc;
defensive_proc_spell = spell_list->defensive_proc; dproc_chance = spell_list->dproc_chance;
dproc_chance = spell_list->dproc_chance;
}
//If any casting variables are defined in the current list, ignore those in the parent list. //If any casting variables are defined in the current list, ignore those in the parent list.
if ( if (