Core/Creature: Do not attack non-combat pets.
Fixes an issue where non-combat pets were aggroing other creatures
This commit is contained in:
@@ -462,8 +462,11 @@ void SmartAI::EnterEvadeMode()
|
||||
|
||||
void SmartAI::MoveInLineOfSight(Unit* who)
|
||||
{
|
||||
if (!who) return;
|
||||
if (!who)
|
||||
return;
|
||||
|
||||
GetScript()->OnMoveInLineOfSight(who);
|
||||
|
||||
if (me->HasReactState(REACT_PASSIVE) || AssistPlayerInCombat(who))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user