Skip to content

Commit 328f82d

Browse files
committed
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.
1 parent 39859e7 commit 328f82d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/game/AI/SmartScripts/SmartScriptMgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,9 +1878,9 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
18781878
}
18791879
break;
18801880
case SMART_ACTION_PAUSE_MOVEMENT:
1881-
if (!e.action.pauseMovement.pauseTimer)
1881+
if (e.action.pauseMovement.pauseTimer < 0)
18821882
{
1883-
TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} does not specify pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
1883+
TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} specifies invalid pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
18841884
return false;
18851885
}
18861886

0 commit comments

Comments
 (0)