aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/CreatureAI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp
index afa34c1d3e0..27fe428efd1 100644
--- a/src/game/CreatureAI.cpp
+++ b/src/game/CreatureAI.cpp
@@ -108,6 +108,9 @@ void CreatureAI::MoveInLineOfSight(Unit *who)
{
if(me->getVictim())
return;
+
+ if (me->GetTypeId() == CREATURE_TYPE_NON_COMBAT_PET) // non-combat pets should just stand there and look good;)
+ return;
if(me->canStartAttack(who, false))
AttackStart(who);