From d6f5d10da55641cf16c0af79377d8833cc8333d8 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 14 Oct 2021 19:44:39 -0400 Subject: [PATCH] Core/PassiveAI: Fix an incorrect check that was inducing evade spam with critters. Port From (https://github.com/TrinityCore/TrinityCore/commit/3e22c70c27dd4bcd6e19b42dd45df27da9368fc4) --- Source/Game/AI/CoreAI/PassiveAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/AI/CoreAI/PassiveAI.cs b/Source/Game/AI/CoreAI/PassiveAI.cs index b014808aa..1513316fc 100644 --- a/Source/Game/AI/CoreAI/PassiveAI.cs +++ b/Source/Game/AI/CoreAI/PassiveAI.cs @@ -31,7 +31,7 @@ namespace Game.AI public override void UpdateAI(uint diff) { - if (me.IsInCombat() && me.GetAttackers().Empty()) + if (me.IsEngaged() && !me.IsInCombat()) EnterEvadeMode(EvadeReason.NoHostiles); }