From f16c3bacefb6f15502958d8acdc8cc1af9ede177 Mon Sep 17 00:00:00 2001 From: killerwife Date: Wed, 30 Oct 2024 22:30:21 +0100 Subject: [PATCH] AI: Expand help aggro to all of CC --- src/game/AI/BaseAI/UnitAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/AI/BaseAI/UnitAI.cpp b/src/game/AI/BaseAI/UnitAI.cpp index 3976edc235..4111524ad2 100644 --- a/src/game/AI/BaseAI/UnitAI.cpp +++ b/src/game/AI/BaseAI/UnitAI.cpp @@ -510,7 +510,8 @@ void UnitAI::CheckForHelp(Unit* who, Unit* me, float distance) return; // pulling happens once panic/retreating ends - if (who->hasUnitState(UNIT_STAT_PANIC | UNIT_STAT_RETREATING) || who->IsPolymorphed()) + // 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()) return; if (me->CanInitiateAttack() && me->CanAttackOnSight(victim) && victim->isInAccessablePlaceFor(me) && victim->IsVisibleForOrDetect(me, me, false))