diff options
author | MrSmite <mrsmite@att.net> | 2012-12-22 12:01:51 -0500 |
---|---|---|
committer | MrSmite <mrsmite@att.net> | 2012-12-22 12:01:51 -0500 |
commit | 9a5b17d536c3c39f81548b1f4dca51caa6b3f48d (patch) | |
tree | ab6f47d669a09ca95ca6c8d5083390b2a0843424 /src | |
parent | 4c9451d54c885df3fac4be875728425ca0defa45 (diff) |
Update src/server/game/AI/CoreAI/PetAI.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 47cc4d12501..78c22e74f44 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -106,12 +106,8 @@ void PetAI::UpdateAI(const uint32 diff) // Check before attacking to prevent pets from leaving stay position if (me->GetCharmInfo()->HasCommandState(COMMAND_STAY)) { - // Case where pet was put on stay after "attack" was clicked and it gets attacked by - // another creature. Pet can switch target if victim is out of range. if (me->GetCharmInfo()->IsCommandAttack() || (me->GetCharmInfo()->IsAtStay() && me->IsWithinMeleeRange(me->getVictim()))) DoMeleeAttackIfReady(); - else if (me->GetCharmInfo()->IsCommandAttack() || (me->GetCharmInfo()->IsAtStay() && me->IsWithinMeleeRange(me->getAttackerForHelper()))) - DoAttack(me->getAttackerForHelper(), false); } else DoMeleeAttackIfReady(); |