fix(Core/Creatures): AttackStart in MoveInLineOfSight is called only for aggressive mobs. (#8878)
Fixes #8868
This commit is contained in:
@@ -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
|
!me->IsWithinDist(who, ATTACK_DISTANCE, true, false)) // if in combat and in dist - neutral to all can actually assist other creatures
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (me->CanStartAttack(who))
|
if (me->HasReactState(REACT_AGGRESSIVE) && me->CanStartAttack(who))
|
||||||
AttackStart(who);
|
AttackStart(who);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user