From b326ccaaee0bad58b8b45b3dbf09d23a55c58913 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 20 Mar 2021 16:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=90=AFphyHold?= =?UTF-8?q?=E5=90=8Ehold=E6=97=B6=E6=93=8D=E4=BD=9C=E6=95=B0=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=B2=A1=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 87492f06..14e07a73 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -630,6 +630,13 @@ function Player.hold(P,ifpre) else--Hold local C,H=P.cur,P.holdQueue[1] + --Finesse check + if H and C and H.id==C.id and H.name==C.name then + P.ctrlCount=P.ctrlCount+1 + elseif P.ctrlCount<=1 then + P.ctrlCount=0 + end + if ENV.phyHold and C and not ifpre then--Physical hold local success local x,y=P.curX,P.curY @@ -670,13 +677,6 @@ function Player.hold(P,ifpre) return end else--Normal hold - --Finesse check - if H and C and H.id==C.id and H.name==C.name then - P.ctrlCount=P.ctrlCount+1 - elseif P.ctrlCount<=1 then - P.ctrlCount=0 - end - P.spinLast=false P.spinSeq=0