mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 13:38:21 +00:00
Add more checks for CommandedSubTypes::AETarget
This commit is contained in:
+1
-1
@@ -11905,7 +11905,7 @@ bool Bot::IsValidSpellTypeSubType(uint16 spellType, uint16 subType, uint16 spell
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case CommandedSubTypes::AETarget:
|
case CommandedSubTypes::AETarget:
|
||||||
if (IsAnyAESpell(spell_id)) {
|
if (IsAnyAESpell(spell_id) && !IsGroupSpell(spell_id)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint16 spellType, uint16 subTarge
|
|||||||
break;
|
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) {
|
for (const auto& s : botSpellList) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user