From 51eb75523e68af475f17252c5d8b27858c5f0bd9 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Sun, 1 Dec 2024 23:35:21 -0600 Subject: [PATCH] add !commandedspell() check to aggro checks on cast --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index b6b74e74a..c0896ad60 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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; }