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