From 179ff9b10a5a2ba8d7878111131856e4b10de333 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 25 Aug 2021 14:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E4=B9=8B=E5=89=8D=E7=9A=84=E6=95=B4=E7=90=86?= =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 8 +++++--- parts/player/update.lua | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 242e7985..5987fcac 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -74,9 +74,11 @@ function Player:clearLockFX() end end function Player:createDropFX() - local CB=self.cur.bk - if self.gameEnv.dropFX and self.gameEnv.block and self.curY-self.ghoY-#CB>-1 then - ins(self.dropFX,{self.curX,self.curY-1,#CB[1],self.curY-self.ghoY-#CB+1,0,13-2*self.gameEnv.dropFX}) + if self.gameEnv.dropFX and self.gameEnv.block then + local CB=self.cur.bk + if self.curY-self.ghoY+1>#CB then + ins(self.dropFX,{self.curX,self.curY-1,#CB[1],self.curY-self.ghoY-#CB+1,0,13-2*self.gameEnv.dropFX}) + end end end function Player:createMoveFX(moveDir) diff --git a/parts/player/update.lua b/parts/player/update.lua index 2638030c..b604d44f 100644 --- a/parts/player/update.lua +++ b/parts/player/update.lua @@ -417,9 +417,7 @@ function update.remote_alive(P,dt) for _,p in next,PLY_ALIVE do if p.sid==sid then P:attack(p,amount,time,line,true) - if P.gameEnv.atkFX then - P:createBeam(p,amount,P.gameEnv.atkFX,P.cur.color) - end + P:createBeam(p,amount) break end end