From 55fc778d38b48cc8568311b2c6f169a534ebeec1 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 19 Nov 2020 15:44:55 +0800 Subject: [PATCH] =?UTF-8?q?hold=E7=B3=BB=E7=BB=9F=E5=86=8D=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 6 +-- parts/player/init.lua | 1 - parts/player/player.lua | 92 ++++++++++++++++++++--------------------- 3 files changed, 48 insertions(+), 51 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index c9ae176b..27f9ec6f 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -254,10 +254,10 @@ function draw.drawHold_multi(P) mText(drawableText.hold,62,-131) gc.setColor(1,1,1) - if P.holdQueue[ENV.holdCount]then - N=P.holdTime+1 - else + if #P.holdQueue0 and(ifpre or P.waiting==-1)then - local N=#P.holdQueue0 and P.gameEnv.ihs then + if not ifhold and _[8]and P.gameEnv.ihs then P:hold(true) _[8]=false else @@ -635,6 +631,8 @@ function Player.popNext(P)--Pop nextQueue to hand P.act_hardDrop(P) _[6]=false end + else + P:hold() end end