diff options
author | MrSmite <no_mail@email.com> | 2012-03-16 15:53:07 -0400 |
---|---|---|
committer | MrSmite <no_mail@email.com> | 2012-03-16 15:53:07 -0400 |
commit | a26e145ae755173af574d1f4c8a9b66e8e435b86 (patch) | |
tree | 32d083864d3f79d43d9ad670d98aa488d27702ca /src | |
parent | c0165ec7f84845c511ad426e318e96e5420687db (diff) |
Fix for pets moving from stay during combat
Closes #5612
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/AI/CoreAI/PetAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index eedba4d8b7e..985eafaf703 100755 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -457,7 +457,7 @@ bool PetAI::CanAttack(Unit* target) // Stay - can attack if target is within range or commanded to if (me->GetCharmInfo()->HasCommandState(COMMAND_STAY)) - return (me->IsWithinMeleeRange(target, MIN_MELEE_REACH) || me->GetCharmInfo()->IsCommandAttack()); + return (me->IsWithinMeleeRange(target, MELEE_RANGE) || me->GetCharmInfo()->IsCommandAttack()); // Follow if (me->GetCharmInfo()->HasCommandState(COMMAND_FOLLOW)) |