mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
add !commandedspell() check to aggro checks on cast
This commit is contained in:
+1
-1
@@ -10908,7 +10908,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user