aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/CoreAI/PetAI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp
index bd5b45bdf3b..f975f3f96ba 100644
--- a/src/server/game/AI/CoreAI/PetAI.cpp
+++ b/src/server/game/AI/CoreAI/PetAI.cpp
@@ -96,7 +96,7 @@ void PetAI::UpdateAI(const uint32 diff)
{
if (_needToStop())
{
- sLog.outStaticDebug("Pet AI stoped attacking [guid=%u]", me->GetGUIDLow());
+ sLog.outStaticDebug("Pet AI stopped attacking [guid=%u]", me->GetGUIDLow());
_stopAttack();
return;
}
@@ -109,6 +109,8 @@ void PetAI::UpdateAI(const uint32 diff)
if (nextTarget)
AttackStart(nextTarget);
+ if (me->HasReactState(REACT_PASSIVE))
+ _stopAttack();
else
HandleReturnMovement();
}