[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:
Alex King 2023-04-03 17:02:48 -04:00 committed by GitHub
parent f4edc69a87
commit c9221f239c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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--) {