Function QueuedTriggerRemoveBJ

Line
1070
Location
blizzard.j
Constant?
no
Type
function
Arguments
trigger trig
Returns
nothing
1070
function QueuedTriggerRemoveBJ takes trigger trig returns nothing
1071
    local integer index
1072
    local integer trigIndex
1073
    local boolean trigExecuted
1074
1075
    // Find the trigger's index.
1076
    set trigIndex = QueuedTriggerGetIndex(trig)
1077
    if (trigIndex == -1) then
1078
        return
1079
    endif
1080
1081
    // Shuffle the other trigger entries down to fill in the gap.
1082
    call QueuedTriggerRemoveByIndex(trigIndex)
1083
1084
    // If we just axed the currently running trigger, run the next one.
1085
    if (trigIndex == 0) then
1086
        call PauseTimer(bj_queuedExecTimeoutTimer)
1087
        call QueuedTriggerAttemptExec()
1088
    endif
1089
endfunction