Skip to content

Commit

Permalink
AI: Mobs that are poly'd should not get help aggro until poly end
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Oct 30, 2024
1 parent a934080 commit 6816729
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 @@ -510,7 +510,7 @@ 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))
if (who->hasUnitState(UNIT_STAT_PANIC | UNIT_STAT_RETREATING) || who->IsPolymorphed())
return;

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

0 comments on commit 6816729

Please sign in to comment.