add early return in freshBlockGhost

This commit is contained in:
Imple Lee
2023-11-21 15:10:37 +08:00
parent 3219da77e9
commit 2604d034fe

View File

@@ -948,8 +948,8 @@ function Player:changeAtk(R)
end
end
function Player:freshBlockGhost()
if not self.cur then return end
local ENV=self.gameEnv
if self.cur then
local CB=self.cur.bk
self.ghoY=min(#self.field+1,self.curY)
if self._20G or ENV.sdarr==0 and self.keyPressing[7] and self.downing>=ENV.sddas then
@@ -979,7 +979,6 @@ function Player:freshBlockGhost()
end
end
end
end
function Player:freshBlockDelay(keepFreshTimeInEasyFresh)
local ENV=self.gameEnv
local d0,l0=ENV.drop,ENV.lock