diff options
author | megamage <none@none> | 2009-07-24 09:15:52 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-24 09:15:52 +0800 |
commit | d80754a48004b0d20ada012a1638e8263a4f18ed (patch) | |
tree | c37821f8c1752da137ec06cd264dff6358cf106c /src | |
parent | 62a6d1dfbe47e44ded70b41066c9539ae25111c3 (diff) |
[8204] Avoid call assistance from non-combatants. Author: GriffonHeart
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Creature.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 80fb7e43fec..a1f37c65f1e 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -2102,6 +2102,10 @@ bool Creature::CanAssistTo(const Unit* u, const Unit* enemy, bool checkfaction / if (!isAlive()) return false; + // we don't need help from non-combatant ;) + if (isCivilian()) + return false; + // skip fighting creature if (isInCombat()) return false; |