From dec0081f6c000f5a643df247eb4469a23c4bc208 Mon Sep 17 00:00:00 2001 From: IntelligentQuantum Date: Sun, 27 Mar 2022 20:04:36 +0430 Subject: [PATCH] fix (Core/SmartScripts): allow to start waypoint movement for a creature that is in combat --- src/server/game/AI/SmartScripts/SmartAI.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 36314010b..2ca681a87 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -179,12 +179,6 @@ void SmartAI::GenerateWayPointArray(Movement::PointsArray* points) void SmartAI::StartPath(bool run, uint32 path, bool repeat, Unit* invoker) { - if (me->IsInCombat())// no wp movement in combat - { - LOG_ERROR("scripts.ai.sai", "SmartAI::StartPath: Creature entry {} wanted to start waypoint movement while in combat, ignoring.", me->GetEntry()); - return; - } - if (HasEscortState(SMART_ESCORT_ESCORTING)) StopPath();