修复没开ihs的时候提前hold会死

This commit is contained in:
MrZ626
2021-04-16 21:15:52 +08:00
parent 1bf20a3217
commit 444c5e571e

View File

@@ -781,12 +781,12 @@ function Player:popNext(ifhold)--Pop nextQueue to hand
end end
end end
local _=self.keyPressing local pressing=self.keyPressing
--IHS --IHS
if not ifhold and _[8]and self.gameEnv.ihs then if not ifhold and pressing[8]and self.gameEnv.ihs and self.holdTime>0 then
self:hold(true) self:hold(true)
_[8]=false pressing[8]=false
else else
self:resetBlock() self:resetBlock()
end end
@@ -804,9 +804,9 @@ function Player:popNext(ifhold)--Pop nextQueue to hand
end end
--IHdS --IHdS
if _[6]and not ifhold then if pressing[6]and not ifhold then
self.act_hardDrop(self) self.act_hardDrop(self)
_[6]=false pressing[6]=false
end end
else else
self:hold() self:hold()