From d6e36601151046d5e99f97fa9594ac2d86fa698c Mon Sep 17 00:00:00 2001 From: Wyrserth Date: Tue, 18 Jun 2019 20:04:34 +0200 Subject: Core/SAI: allow to start waypoint movement for a creature that is in combat. (#23426) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index d768ae004ab..e0c0e43d388 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -44,12 +44,6 @@ bool SmartAI::IsAIControlled() const void SmartAI::StartPath(bool run/* = false*/, uint32 pathId/* = 0*/, bool repeat/* = false*/, Unit* invoker/* = nullptr*/, uint32 nodeId/* = 1*/) { - if (me->IsEngaged()) // no wp movement in combat - { - TC_LOG_ERROR("scripts.ai.sai", "SmartAI::StartPath: Creature wanted to start waypoint movement (pathId: %u) while in combat, ignoring. (%s)", pathId, me->GetGUID().ToString().c_str()); - return; - } - if (HasEscortState(SMART_ESCORT_ESCORTING)) StopPath(); -- cgit v1.2.3