mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 14:10:18 -04:00
Core/SAI: Fix SMART_ACTION_WP_RESUME actually pausing next waypoint if the current path was not paused
Fixes #25519
(cherry picked from commit 5be7c2ad4f)
This commit is contained in:
@@ -1489,7 +1489,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
break;
|
||||
|
||||
// Set the timer to 1 ms so the path will be resumed on next update loop
|
||||
ENSURE_AI(SmartAI, me->AI())->SetWPPauseTimer(1);
|
||||
if (ENSURE_AI(SmartAI, me->AI())->CanResumePath())
|
||||
ENSURE_AI(SmartAI, me->AI())->SetWPPauseTimer(1);
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_ORIENTATION:
|
||||
|
||||
Reference in New Issue
Block a user