Skip to content

Commit

Permalink
AI: Expand help aggro to all of CC
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Oct 30, 2024
1 parent 6816729 commit f16c3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/AI/BaseAI/UnitAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f16c3ba

Please sign in to comment.