mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
[Cleanup] Remove unnecessary botCaster check in Bot::GetDebuffBotSpell() (#3246)
# Notes - We already check if `botCaster` is invalid above, no need to do so again.
This commit is contained in:
parent
f4edc69a87
commit
c9221f239c
@ -2669,7 +2669,7 @@ BotSpell Bot::GetDebuffBotSpell(Bot* botCaster, Mob *tar) {
|
|||||||
if (!tar || !botCaster)
|
if (!tar || !botCaster)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
if (botCaster && botCaster->AI_HasSpells()) {
|
if (botCaster->AI_HasSpells()) {
|
||||||
std::vector<BotSpells_Struct> botSpellList = botCaster->AIBot_spells;
|
std::vector<BotSpells_Struct> botSpellList = botCaster->AIBot_spells;
|
||||||
|
|
||||||
for (int i = botSpellList.size() - 1; i >= 0; i--) {
|
for (int i = botSpellList.size() - 1; i >= 0; i--) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user