diff options
author | megamage <none@none> | 2008-12-05 18:39:31 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-05 18:39:31 -0600 |
commit | 3a1293ef183425fe555354c5445b43ff246d33fa (patch) | |
tree | f0ae72dfc6bed7e828a36bfee8832e60c50096b8 /src/game/ThreatManager.cpp | |
parent | d36672cd7e4ae3d328f30c020c5421668ad4cb5e (diff) |
*Update melee range calculation. By QAston.
--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 94f12f5394a..44bf18d2462 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -302,7 +302,7 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe } if( currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() || - currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat() && pAttacker->IsWithinDistInMap(target, ATTACK_DISTANCE) ) + currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat() && pAttacker->IsWithinMeleeRange(target) ) { //implement 110% threat rule for targets in melee range found = true; //and 130% rule for targets in ranged distances break; //for selecting alive targets |