aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-02-20 03:13:11 +0100
committertreeston <treeston.mmoc@gmail.com>2016-02-20 03:13:11 +0100
commitab194d5ae3b9812ebd5c8f56559e85f1441cf857 (patch)
treea12bc53888b02ccbff43ca2f68919381bc17644a /src/server/game/AI/SmartScripts
parente4dfbb60fd85ad9fb8fbbd700b684c6ece8abdbb (diff)
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.
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index eca327e770e..cf544729ae9 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;