mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user