From 6816729f4b31efd593577ed2311670349499568f Mon Sep 17 00:00:00 2001 From: killerwife Date: Wed, 30 Oct 2024 08:53:41 +0100 Subject: [PATCH] AI: Mobs that are poly'd should not get help aggro until poly end --- 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 03bdb368d0a..3976edc2351 100644 --- a/src/game/AI/BaseAI/UnitAI.cpp +++ b/src/game/AI/BaseAI/UnitAI.cpp @@ -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))