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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp
index 925f68f7eec..f218818febf 100644
--- a/src/game/PetAI.cpp
+++ b/src/game/PetAI.cpp
@@ -123,6 +123,9 @@ void PetAI::UpdateAI(const uint32 diff)
}
}
+ if(!me->GetCharmInfo())
+ return;
+
if (i_pet.GetGlobalCooldown() == 0 && !i_pet.hasUnitState(UNIT_STAT_CASTING))
{
bool inCombat = me->getVictim();