Core/AI: prevent launching a new MoveChase if victim didn't change
Port From (https://github.com/TrinityCore/TrinityCore/commit/9c53ee0fe8ec98b3a192f065bd1ac30fc111f73c)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user