fix(Core/Creatures): AttackStart in MoveInLineOfSight is called only for aggressive mobs. (#8878)

Fixes #8868
This commit is contained in:
UltraNix 2021-11-02 15:43:18 +01:00 committed by GitHub
parent 2d38f36555
commit e57e0e7cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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