From d4075c6fa99d22f51b49955a15cacbab2cf68c2c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 9 Dec 2020 00:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=B1=80=E6=8F=90?= =?UTF-8?q?=E5=89=8Dhold+=E7=A1=AC=E9=99=8D=E4=BC=9A=E6=AD=BB=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=88=E9=AD=94=E5=B9=BB=E4=BF=AE=E6=B3=95?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index cfc18ec8..0ee21362 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -615,7 +615,10 @@ function Player.hold(P,ifpre) P:freshBlock(false,true) P.dropDelay=P.gameEnv.drop P.lockDelay=P.gameEnv.lock - if P:ifoverlap(P.cur.bk,P.curX,P.curY)then P:lock()P:lose()end + if P:ifoverlap(P.cur.bk,P.curX,P.curY)then + P:lock() + P:lose() + end end P.freshTime=int(min(P.freshTime+P.gameEnv.freshLimit*.25,P.gameEnv.freshLimit*((P.holdTime+1)/P.gameEnv.holdCount))) @@ -684,7 +687,7 @@ function Player.popNext(P,ifhold)--Pop nextQueue to hand end --IHdS - if _[6]then + if _[6]and not ifhold then P.act_hardDrop(P) _[6]=false end