* Fix exploit with non-combat pets, realy make them not fight, requires DB support set to type=12

--HG--
branch : trunk
This commit is contained in:
Biglad
2009-10-09 10:55:50 +01:00
parent 89b384618d
commit a6329701e2

View File

@@ -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);