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:
@@ -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)
|
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))
|
if (HasEscortState(SmartEscortState.Escorting))
|
||||||
StopPath();
|
StopPath();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user