Skip to content

Commit

Permalink
AI: Aggro on fear
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 8, 2025
1 parent e2df6ef commit 8569880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/AI/BaseAI/UnitAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void UnitAI::CheckForHelp(Unit* who, Unit* me, float distance)

// pulling happens once panic/retreating ends
// current theory is that help aggro is never done if owner has suspended AI function during CC
if (who->hasUnitState(UNIT_STAT_PANIC | UNIT_STAT_RETREATING) || who->IsCrowdControlled())
if (who->hasUnitState(UNIT_STAT_RETREATING) || who->IsConfused() || who->IsStunned())
return;

if (me->CanInitiateAttack() && me->CanAttackOnSight(victim) && victim->isInAccessablePlaceFor(me) && victim->IsVisibleForOrDetect(me, me, false))
Expand Down

0 comments on commit 8569880

Please sign in to comment.