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/AggressorAI.cpp | |
| parent | d36672cd7e4ae3d328f30c020c5421668ad4cb5e (diff) | |
*Update melee range calculation. By QAston.
--HG--
branch : trunk
Diffstat (limited to 'src/game/AggressorAI.cpp')
| -rw-r--r-- | src/game/AggressorAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/AggressorAI.cpp b/src/game/AggressorAI.cpp index 27c1ad6ee6c..3fd0f63d194 100644 --- a/src/game/AggressorAI.cpp +++ b/src/game/AggressorAI.cpp @@ -126,7 +126,7 @@ AggressorAI::UpdateAI(const uint32 /*diff*/) if( i_creature.isAttackReady() ) { - if( i_creature.IsWithinCombatDist(i_creature.getVictim(), ATTACK_DISTANCE)) + if( i_creature.IsWithinMeleeRange(i_creature.getVictim())) { i_creature.AttackerStateUpdate(i_creature.getVictim()); i_creature.resetAttackTimer(); |
