From b2e4a962d9bc5105847f8ae0668e77b6a9961335 Mon Sep 17 00:00:00 2001 From: treeston Date: Sat, 20 Feb 2016 03:13:11 +0100 Subject: Incorrect AI aggression as a consequence of the LineOfSight change, episode three, revenge of the special AIs. Also, hopefully the last. No original trilogy please. (cherry picked from commit ab194d5ae3b9812ebd5c8f56559e85f1441cf857) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/AI/SmartScripts') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 2dec1d0fc4c..2f91b593a57 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -466,6 +466,9 @@ bool SmartAI::CanAIAttack(const Unit* /*who*/) const bool SmartAI::AssistPlayerInCombat(Unit* who) { + if (me->HasReactState(REACT_PASSIVE)) + return; + if (!who || !who->GetVictim()) return false; -- cgit v1.2.3