diff options
author | megamage <none@none> | 2009-08-15 14:30:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-15 14:30:14 -0500 |
commit | e03b7cd4d75e040336fa18f20e24d5797111728e (patch) | |
tree | e6dddcd7c4be0fac426d560a48ce9d8b05bb97a0 /src/game/Unit.cpp | |
parent | bc7f37fe1cd29c4315b38d2c844e227e97e6b900 (diff) |
*Change react state of guardian back to aggressive. Instead check threat radius in canstartattack to prevent them attack too far target.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index da55ce24576..567a3628c9c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11187,11 +11187,8 @@ Unit* Creature::SelectVictim() // search nearby enemy before enter evade mode if(HasReactState(REACT_AGGRESSIVE)) - { - target = SelectNearestTarget(); - if(target && !IsOutOfThreatArea(target)) + if(target = SelectNearestTarget()) return target; - } if(m_invisibilityMask) { |