尝试保存数据的时候添加“p1是人类玩家”的条件

This commit is contained in:
MrZ626
2021-08-21 21:22:00 +08:00
parent 03edb20265
commit d818e697e9

View File

@@ -341,7 +341,7 @@ function gameOver()--Save record
end
end
function trySave()
if not GAME.statSaved and PLAYERS[1]and(PLAYERS[1].frameRun>300 or GAME.result)then
if not GAME.statSaved and PLAYERS[1]and PLAYERS[1].type=='human'and(PLAYERS[1].frameRun>300 or GAME.result)then
GAME.statSaved=true
STAT.game=STAT.game+1
mergeStat(STAT,PLAYERS[1].stat)