mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 22:19:25 +01:00
*Update melee range calculation. By QAston.
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user