CustomDefeatReduceDifficultyBJ
- comment
- patch
1.00
- Source
- Blizzard.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function CustomDefeatReduceDifficultyBJ takes nothing returns nothing local gamedifficulty diff = GetGameDifficulty() call PauseGame( false ) // Knock the difficulty down, if possible. if (diff == MAP_DIFFICULTY_EASY) then // Sorry, but it doesn't get any easier than this. elseif (diff == MAP_DIFFICULTY_NORMAL) then call SetGameDifficulty(MAP_DIFFICULTY_EASY) elseif (diff == MAP_DIFFICULTY_HARD) then call SetGameDifficulty(MAP_DIFFICULTY_NORMAL) else // Unrecognized difficulty endif call RestartGame( true ) endfunction