MeleeTriggerTournamentFinishSoon
- comment
- patch
1.07
- Source
- Blizzard.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function MeleeTriggerTournamentFinishSoon takes nothing returns nothing // Note: We may get this trigger multiple times local integer playerIndex local player indexPlayer local real timeRemaining = GetTournamentFinishSoonTimeRemaining() if not bj_finishSoonAllExposed then set bj_finishSoonAllExposed = true // Reset all crippled players and their timers, and hide the local crippled timer dialog set playerIndex = 0 loop set indexPlayer = Player(playerIndex) if bj_playerIsCrippled[playerIndex] then // Uncripple the player set bj_playerIsCrippled[playerIndex] = false call PauseTimer(bj_crippledTimer[playerIndex]) if (GetLocalPlayer() == indexPlayer) then // Use only local code (no net traffic) within this block to avoid desyncs. // Hide the timer window. call TimerDialogDisplay(bj_crippledTimerWindows[playerIndex], false) endif endif set playerIndex = playerIndex + 1 exitwhen playerIndex == bj_MAX_PLAYERS endloop // Expose all players call MeleeExposeAllPlayers() endif // Show the "finish soon" timer dialog and set the real time remaining call TimerDialogDisplay(bj_finishSoonTimerDialog, true) call TimerDialogSetRealTimeRemaining(bj_finishSoonTimerDialog, timeRemaining) endfunction