From e3cb264262920b7c43f372d221713758ca9bbffb Mon Sep 17 00:00:00 2001 From: Wyrserth Date: Tue, 18 Jun 2019 20:04:34 +0200 Subject: [PATCH] Core/SAI: allow to start waypoint movement for a creature that is in combat. (#23426) # Conflicts: # src/server/game/AI/SmartScripts/SmartAI.cpp --- 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 eb798f25276..1f5fa7564df 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -62,12 +62,6 @@ void SmartAI::UpdateDespawn(uint32 diff) void SmartAI::StartPath(bool run/* = false*/, uint32 pathId/* = 0*/, bool repeat/* = false*/, Unit* invoker/* = nullptr*/, uint32 nodeId/* = 1*/) { - if (me->IsInCombat()) // no wp movement in combat - { - TC_LOG_ERROR("misc", "SmartAI::StartPath: Creature entry %u wanted to start waypoint movement (%u) while in combat, ignoring.", me->GetEntry(), pathId); - return; - } - if (HasEscortState(SMART_ESCORT_ESCORTING)) StopPath();