mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
[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:
parent
470392021b
commit
60091015d3
@ -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 (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user