*Update melee range calculation. By QAston.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-05 18:39:31 -06:00
parent d36672cd7e
commit 3a1293ef18
34 changed files with 93 additions and 138 deletions

View File

@@ -117,7 +117,7 @@ void GuardAI::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();