From 17e8c2c67c051437c94fb27b8d3af7837a59b85d Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 10 Nov 2020 19:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=97=B6=E8=83=9C?= =?UTF-8?q?=E5=88=A9/=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parts/player.lua b/parts/player.lua index cada5674..5fd3c9c6 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -2673,7 +2673,7 @@ local function gameOver()--Save record end end -function player.die(P)--Called when win/lose,not really die! +function player.die(P)--Called both when win/lose! P.alive=false P.timing=false P.control=false @@ -2692,6 +2692,7 @@ function player.die(P)--Called when win/lose,not really die! end end function player.win(P,result) + if P.result then return end P:die() P.result="WIN" if modeEnv.royaleMode then @@ -2721,6 +2722,7 @@ function player.win(P,result) P:newTask(TICK.finish) end function player.lose(P,force) + if P.result then return end if P.life>0 and not force then P.waiting=62 for _=#P.field,1,-1 do