mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +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();
|
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
|
LogBotPreChecksDetail("{} says, 'Cancelling cast of [{}] due to GetSpellTypeAggroCheck and HasOrMayGetAggro.'", GetCleanName(), GetSpellTypeNameByID(spellType)); //deleteme
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user