Show
Ignore:
Timestamp:
11/19/08 13:41:28 (17 years ago)
Author:
yumileroy
Message:

[svn] Use IsWithinCombatDist? for all AI. This should fix the bug that pet and guard does not attack target. (Note: some scriptedAI may need to update)

Original author: megamage
Date: 2008-11-03 14:11:09-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/AggressorAI.cpp

    r102 r156  
    125125    if( i_creature.isAttackReady() ) 
    126126    { 
    127         if( i_creature.IsWithinDistInMap(i_creature.getVictim(), ATTACK_DISTANCE)) 
     127        if( i_creature.IsWithinCombatDist(i_creature.getVictim(), ATTACK_DISTANCE)) 
    128128        { 
    129129            i_creature.AttackerStateUpdate(i_creature.getVictim());