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/ThreatManager.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/ThreatManager.cpp')
-rw-r--r-- | src/game/ThreatManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp index 60c46c2307d..5db2a99440d 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -306,7 +306,7 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe } } - if(!pAttacker->IsOutOfThreatArea(target)) // skip non attackable currently targets + if(pAttacker->canCreatureAttack(target)) // skip non attackable currently targets { if(pCurrentVictim) // select 1.3/1.1 better target in comparison current target { |