From 328f82da78a347943124388f50a607b2a69a00a4 Mon Sep 17 00:00:00 2001 From: ccrs Date: Thu, 16 Oct 2025 20:15:43 +0200 Subject: Core/SAI: allow indefinite movement pause timers in SmartScripts This allows pausing random movement generator permanently, for example, instead of using a big number to simulate it. --- src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index 2a685a6be04..d86bf0d9ef5 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -1878,9 +1878,9 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) } break; case SMART_ACTION_PAUSE_MOVEMENT: - if (!e.action.pauseMovement.pauseTimer) + if (e.action.pauseMovement.pauseTimer < 0) { - TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} does not specify pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); + TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} specifies invalid pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); return false; } -- cgit v1.2.3