diff options
author | Brian <runningnak3d@gmail.com> | 2010-05-06 02:13:15 -0600 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-05-06 02:13:15 -0600 |
commit | 42a379bfb1e109a0730e3c3eda87cffb2ec22bf9 (patch) | |
tree | 0d175d1a6224436f04226b1065103a52697333b8 /src/game/Unit.cpp | |
parent | f60d534b73838c2f3c461b0086f6da02576697f3 (diff) |
* Fix the damn everloving neutral assist once again
* Patch coutesy of PivoNRoll
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |