aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyrserth <wyrserth@protonmail.com>2019-06-18 20:04:34 +0200
committerGiacomo Pozzoni <giacomopoz@gmail.com>2019-06-18 20:04:34 +0200
commitd6e36601151046d5e99f97fa9594ac2d86fa698c (patch)
treecb89af91276f87c172f9dfe9ba37dc42d9a0003b
parenta8629eb6d135ece78c09ee85f8905fc0dd6a73a2 (diff)
Core/SAI: allow to start waypoint movement for a creature that is in combat. (#23426)
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp6
1 files changed, 0 insertions, 6 deletions
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();