From a6329701e2d19858dfb45986a463b11f48eefd60 Mon Sep 17 00:00:00 2001 From: Biglad Date: Fri, 9 Oct 2009 10:55:50 +0100 Subject: * Fix exploit with non-combat pets, realy make them not fight, requires DB support set to type=12 --HG-- branch : trunk --- src/game/CreatureAI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3