Jass:AllowVictoryDefeat – Mappedia

Jass:AllowVictoryDefeat

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: AllowVictoryDefeat
Parameter: playergameresult
Rückgabewert: boolean
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



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

Parameter

Typ Name Beschreibung
playergameresult gameResult
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge