From 422363b10bc154197da2b98f3a9859c81b2b13d0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 30 Oct 2020 20:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=8F=E5=88=97=E7=94=A8=E5=AE=8C=E6=88=96?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=A4=B1=E8=B4=A5=E4=B8=8D=E6=89=A3=E7=94=9F?= =?UTF-8?q?=E5=91=BD=E7=9B=B4=E6=8E=A5=E5=88=A4=E8=B4=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/player.lua b/parts/player.lua index 05e67d4d..987a7815 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -1268,7 +1268,7 @@ local prepareSequence do else print(P.cur) print(P.hd) - if not(P.cur or P.hd)then P:lose()end + if not(P.cur or P.hd)then P:lose(true)end return end end @@ -2509,7 +2509,7 @@ do--player.drop(P)--Place piece elseif ENV.missionKill then P:showText(text.missionFailed,0,140,40,"flicker",.5) SFX.play("finesseError_long",.6) - P:lose() + P:lose(true) end end @@ -2697,8 +2697,8 @@ function player.win(P,result) end P:newTask(TICK.finish) end -function player.lose(P) - if P.life>0 then +function player.lose(P,force) + if P.life>0 and not force then for _=#P.field,1,-1 do freeRow.discard(P.field[_]) freeRow.discard(P.visTime[_])