Core/Creature: Do not attack non-combat pets.

Fixes an issue where non-combat pets were aggroing other creatures
This commit is contained in:
Nay
2011-10-01 16:57:10 +01:00
parent 5cf9693542
commit 8373e6c32e
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -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;