Add more checks for CommandedSubTypes::AETarget

This commit is contained in:
nytmyr committed 2024-12-12 22:14:08 -06:00
1 parent bf4f2f5623
commit 9d5b679fc4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -11894,7 +11894,7 @@ bool Bot::IsValidSpellTypeSubType(uint16 spellType, uint16 subType, uint16 spell
break;
case CommandedSubTypes::AETarget:
if (IsAnyAESpell(spell_id)) {
if (IsAnyAESpell(spell_id) && !IsGroupSpell(spell_id)) {
return true;
}
+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) {