mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 04:12:17 +00:00
add !commandedspell() check to aggro checks on cast
This commit is contained in:
1 parent
1d0ca78e2d
commit
51eb75523e
1 file changed
+1
-1
+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