AllowVictoryDefeat
- Parameters
-
gameResult playergameresult
- return type
boolean
- Source code
function AllowVictoryDefeat takes playergameresult gameResult returns boolean if (gameResult == PLAYER_GAME_RESULT_VICTORY) then return not IsNoVictoryCheat() endif if (gameResult == PLAYER_GAME_RESULT_DEFEAT) then return not IsNoDefeatCheat() endif if (gameResult == PLAYER_GAME_RESULT_NEUTRAL) then return (not IsNoVictoryCheat()) and (not IsNoDefeatCheat()) endif return true endfunction
- Source
- Blizzard.j
- wc3modding.com
- AllowVictoryDefeat