From d4184065b6d51b250ab08f35e88868cef631ed4b Mon Sep 17 00:00:00 2001 From: treeston Date: Sat, 20 Feb 2016 03:20:43 +0100 Subject: [PATCH] I don't like drycoding. It's coarse and rough and irritating and it gets everywhere. --- src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index cf544729ae..361bb1a5b1 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;