박찬수

스텝, 초기화 오류 수정

Showing 1 changed file with 4 additions and 4 deletions
......@@ -111,16 +111,17 @@ function GetPlayerInfo(playerID, season, eventObj){
function SelectAPI(eventObj, commingMsg){
console.log("Step : " + step.toString());
++step;
if(tryParse.int(commingMsg) != null){ // 리그 선택
if(step == 0){
if(step == 1){
isLeagueInfo = true;
SelectLeague(tryParse.int(commingMsg));
Reply(eventObj, SelectLeagueInfoMessage());
}
else if(step == 1 && isLeagueInfo){
else if(step == 2 && isLeagueInfo){
SelectLeagueInfo(eventObj, tryParse.int(commingMsg));
}
else if(step == 1 && !isLeagueInfo){
else if(step == 2 && !isLeagueInfo){
SelectTeamInfo(tryParse.int(commingMsg));
}
}
......@@ -130,7 +131,6 @@ function SelectAPI(eventObj, commingMsg){
Reply(eventObj, SelectTeamInfoMessage());
});
}
step++;
}
function SelectLeague(inputNum){
......