aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-23 21:38:50 -0500
committermegamage <none@none>2009-04-23 21:38:50 -0500
commite97ddc5872174467965d81d767b4c54e6a96cd4a (patch)
treeb735cd2cd20ad4c3abcfd8ac1efe4bb6055ab0fa /src
parent786428b047b5ea0ce3797bfc7127ed293b3458ae (diff)
*Do not let civilian aggro players.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index e7572bf5e78..520e5cb62c3 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1563,7 +1563,8 @@ bool Creature::IsWithinSightDist(Unit const* u) const
bool Creature::canStartAttack(Unit const* who) const
{
- if(!who->isInAccessiblePlaceFor(this)
+ if(isCivilian()
+ || !who->isInAccessiblePlaceFor(this)
|| !canFly() && GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE
|| !IsWithinDistInMap(who, GetAttackDistance(who)))
return false;