Add more checks for CommandedSubTypes::AETarget

This commit is contained in:
nytmyr
2024-12-10 14:04:07 -06:00
parent f3e0fdae73
commit 57a81fc310
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge
break;
}
std::list<BotSpell_wPriority> botSpellList = GetPrioritizedBotSpellsBySpellType(this, spellType, tar, IsAEBotSpellType(spellType), subTargetType, subType);
std::list<BotSpell_wPriority> botSpellList = GetPrioritizedBotSpellsBySpellType(this, spellType, tar, (IsAEBotSpellType(spellType) || subTargetType == CommandedSubTypes::AETarget), subTargetType, subType);
for (const auto& s : botSpellList) {