Core/SAI: allow to start waypoint movement for a creature that is in combat.

Port From (https://github.com/TrinityCore/TrinityCore/commit/5331656785a2b76c060c4e8d4cfb3938c8559efc)
This commit is contained in:
hondacrx
2021-12-22 20:24:27 -05:00
parent 8510f01035
commit 7a4882731d
-6
View File
@@ -89,12 +89,6 @@ namespace Game.AI
public void StartPath(bool run = false, uint pathId = 0, bool repeat = false, Unit invoker = null, uint nodeId = 1)
{
if (me.IsInCombat())// no wp movement in combat
{
Log.outError(LogFilter.Server, $"SmartAI.StartPath: Creature entry {me.GetEntry()} wanted to start waypoint movement while in combat, ignoring.");
return;
}
if (HasEscortState(SmartEscortState.Escorting))
StopPath();