diff options
| author | Wyrserth <wyrserth@protonmail.com> | 2019-06-18 20:04:34 +0200 |
|---|---|---|
| committer | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-06-18 20:04:34 +0200 |
| commit | d6e36601151046d5e99f97fa9594ac2d86fa698c (patch) | |
| tree | cb89af91276f87c172f9dfe9ba37dc42d9a0003b | |
| parent | a8629eb6d135ece78c09ee85f8905fc0dd6a73a2 (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.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 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(); |
