From d97c8ceaf6ac134f238a0222d44cf3e2d726f0d7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 18 May 2020 22:47:27 -0400 Subject: [PATCH] Core/AI: prevent launching a new MoveChase if victim didn't change Port From (https://github.com/TrinityCore/TrinityCore/commit/9c53ee0fe8ec98b3a192f065bd1ac30fc111f73c) --- Source/Game/AI/CoreAI/CreatureAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/AI/CoreAI/CreatureAI.cs b/Source/Game/AI/CoreAI/CreatureAI.cs index 26665d20a..672bd0b09 100644 --- a/Source/Game/AI/CoreAI/CreatureAI.cs +++ b/Source/Game/AI/CoreAI/CreatureAI.cs @@ -233,7 +233,7 @@ namespace Game.AI { Unit victim = me.SelectVictim(); if (victim != null) - if (!me.IsFocusing(null, true)) + if (!me.IsFocusing(null, true) && victim != me.GetVictim()) AttackStart(victim); return me.GetVictim() != null;