From 42a379bfb1e109a0730e3c3eda87cffb2ec22bf9 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 6 May 2010 02:13:15 -0600 Subject: * Fix the damn everloving neutral assist once again * Patch coutesy of PivoNRoll --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 35902b684af..da0a9a4ae4c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11510,6 +11510,9 @@ bool Unit::canAttack(Unit const* target, bool force) const { if (IsFriendlyTo(target)) return false; + if (GetTypeId()!=TYPEID_PLAYER) + if (!IsHostileTo(target)) + return false; } else if (!IsHostileTo(target)) return false; -- cgit v1.2.3