fix(Core/AI): Fixed mobs attacking in defensive state. (#14947)

This commit is contained in:
UltraNix
2023-02-11 16:06:17 +01:00
committed by GitHub
parent 07b458afda
commit f496535cc8
3 changed files with 3 additions and 3 deletions

View File

@@ -704,7 +704,7 @@ void SmartAI::MoveInLineOfSight(Unit* who)
if (me->HasReactState(REACT_PASSIVE) || AssistPlayerInCombatAgainst(who))
return;
if (me->CanStartAttack(who))
if (me->HasReactState(REACT_AGGRESSIVE) && me->CanStartAttack(who))
{
if (me->HasUnitState(UNIT_STATE_DISTRACTED))
{