diff options
author | Wyrserth <wyrserth@protonmail.com> | 2019-06-18 20:04:34 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-11 15:29:32 +0100 |
commit | 5331656785a2b76c060c4e8d4cfb3938c8559efc (patch) | |
tree | 4bf26d7ffec644f8a4f29288fc61fc3e973a95c6 /src | |
parent | 1f47729ecb12d0bb2148cf39a141a5f673ef0aaa (diff) |
Core/SAI: allow to start waypoint movement for a creature that is in combat. (#23426)
(cherry picked from commit d6e36601151046d5e99f97fa9594ac2d86fa698c)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 6 |
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 6aee503e82c..45bd34cdea5 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -45,12 +45,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(); |