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.
This commit is contained in:
ccrs
2025-10-16 20:15:43 +02:00
parent 39859e7852
commit 328f82da78

View File

@@ -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;
}