fix(Core/Creatures): AttackStart in MoveInLineOfSight is called only for aggressive mobs. (#8878)
Fixes #8868
This commit is contained in:
parent
2d38f36555
commit
e57e0e7cd1
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ void CreatureAI::MoveInLineOfSight(Unit* who)
|
|||
!me->IsWithinDist(who, ATTACK_DISTANCE, true, false)) // if in combat and in dist - neutral to all can actually assist other creatures
|
||||
return;
|
||||
|
||||
if (me->CanStartAttack(who))
|
||||
if (me->HasReactState(REACT_AGGRESSIVE) && me->CanStartAttack(who))
|
||||
AttackStart(who);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue