add !commandedspell() check to aggro checks on cast

This commit is contained in:
nytmyr
2024-12-01 23:35:21 -06:00
parent 1d0ca78e2d
commit 51eb75523e
+1 -1
View File
@@ -10919,7 +10919,7 @@ bool Bot::AttemptAICastSpell(uint16 spellType) {
Mob* tar = GetTarget();
if (!IsTaunting() && GetSpellTypeAggroCheck(spellType) && HasOrMayGetAggro(IsSitting())) {
if (!IsTaunting() && !IsCommandedSpell() && GetSpellTypeAggroCheck(spellType) && HasOrMayGetAggro(IsSitting())) {
LogBotPreChecksDetail("{} says, 'Cancelling cast of [{}] due to GetSpellTypeAggroCheck and HasOrMayGetAggro.'", GetCleanName(), GetSpellTypeNameByID(spellType)); //deleteme
return result;
}