diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 808162e50a..992ecf617e 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1604,6 +1604,7 @@ bool PlayerIsUsingModifier( PlayerNumber pn, const CString sModifier ) #include "LuaFunctions.h" LuaFunction_PlayerNumber( IsPlayerEnabled, GAMESTATE->IsPlayerEnabled(pn) ) LuaFunction_PlayerNumber( IsHumanPlayer, GAMESTATE->IsHumanPlayer(pn) ) +LuaFunction_PlayerNumber( IsWinner, GAMESTATE->GetStageResult(pn)==RESULT_WIN ) LuaFunction_NoArgs( IsCourseMode, GAMESTATE->IsCourseMode() ) LuaFunction_NoArgs( IsDemonstration, GAMESTATE->m_bDemonstrationOrJukebox ) LuaFunction_NoArgs( StageIndex, GAMESTATE->GetStageIndex() )