From 6a8878fb5da29c4ff0deac8e8819489089731704 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 3 Nov 2008 14:11:09 -0600 Subject: [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) --HG-- branch : trunk --- src/game/ReactorAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/ReactorAI.cpp') diff --git a/src/game/ReactorAI.cpp b/src/game/ReactorAI.cpp index 9ce3d9ad55f..41e5fb51f10 100644 --- a/src/game/ReactorAI.cpp +++ b/src/game/ReactorAI.cpp @@ -76,7 +76,7 @@ ReactorAI::UpdateAI(const uint32 /*time_diff*/) if( i_creature.isAttackReady() ) { - if( i_creature.IsWithinDistInMap(i_creature.getVictim(), ATTACK_DISTANCE)) + if( i_creature.IsWithinCombatDist(i_creature.getVictim(), ATTACK_DISTANCE)) { i_creature.AttackerStateUpdate(i_creature.getVictim()); i_creature.resetAttackTimer(); -- cgit v1.2.3