aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/PetAI.cpp')
-rw-r--r--src/game/PetAI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp
index 25125c2a0dc..534500e51ea 100644
--- a/src/game/PetAI.cpp
+++ b/src/game/PetAI.cpp
@@ -323,6 +323,10 @@ Unit *PetAI::SelectNextTarget()
if (me->GetCharmerOrOwner()->getAttackerForHelper())
return me->GetCharmerOrOwner()->getAttackerForHelper();
+ // 3.0.2 - Pets now start attacking their owners target in defensive mode as soon as the hunter does
+ if (me->GetCharmerOrOwner()->getVictim())
+ return me->GetCharmerOrOwner()->getVictim();
+
// Default
return NULL;
}