aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-02-20 03:20:43 +0100
committertreeston <treeston.mmoc@gmail.com>2016-02-20 03:20:43 +0100
commitd4184065b6d51b250ab08f35e88868cef631ed4b (patch)
tree89724d29c756b9386d692cf9784a026a8a25460b
parentab194d5ae3b9812ebd5c8f56559e85f1441cf857 (diff)
I don't like drycoding. It's coarse and rough and irritating and it gets everywhere.
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index cf544729ae9..361bb1a5b1d 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -467,7 +467,7 @@ bool SmartAI::CanAIAttack(const Unit* /*who*/) const
bool SmartAI::AssistPlayerInCombat(Unit* who)
{
if (me->HasReactState(REACT_PASSIVE))
- return;
+ return false;
if (!who || !who->GetVictim())
return false;