*Update melee range calculation. By QAston.
--HG-- branch : trunk
This commit is contained in:
1 parent
d36672cd7e
commit
3a1293ef18
34 files changed
+93
-138
No files matched your search
@@ -76,7 +76,7 @@ ReactorAI::UpdateAI(const uint32 /*time_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();
|
||||
|
||||
Reference in new issue
Block a user