From 856988003b30d5b08dbc959565d1802bc67fe4e8 Mon Sep 17 00:00:00 2001 From: killerwife Date: Wed, 8 Jan 2025 07:48:08 +0100 Subject: [PATCH] AI: Aggro on fear --- src/game/AI/BaseAI/UnitAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/AI/BaseAI/UnitAI.cpp b/src/game/AI/BaseAI/UnitAI.cpp index e6e830a769b..e161fea7bcf 100644 --- a/src/game/AI/BaseAI/UnitAI.cpp +++ b/src/game/AI/BaseAI/UnitAI.cpp @@ -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))