From 622177e0df8d3db393a3fe156e8bf040e619ef10 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 19 Dec 2020 01:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BB=E5=87=BB=E5=8A=9B=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 63 ++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 4025f25e..02bd28fe 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -1196,45 +1196,42 @@ do--Player.drop(P)--Place piece end --Send Lines + atk=int(atk*(1+P.strength*.25))--Badge Buff send=atk - if send>0 then - if exblock>0 then - exblock=int(exblock*(1+P.strength*.25))--Badge Buff - P:showText("+"..exblock,0,53,20,"fly") - off=off+P:cancel(exblock) - end - - send=int(send*(1+P.strength*.25))--Badge Buff + if exblock>0 then + exblock=int(exblock*(1+P.strength*.25))--Badge Buff + P:showText("+"..exblock,0,53,20,"fly") + off=off+P:cancel(exblock) + end + if send>=1 then + P:showText(send,0,80,35,"zoomout") + _=P:cancel(send) + send=send-_ + off=off+_ if send>0 then - P:showText(send,0,80,35,"zoomout") - _=P:cancel(send) - send=send-_ - off=off+_ - if send>0 then - local T - if GAME.modeEnv.royaleMode then - if P.atkMode==4 then - local M=#P.atker - if M>0 then - for i=1,M do - P:attack(P.atker[i],send,CB.color) - end - else - T=randomTarget(P) + local T + if GAME.modeEnv.royaleMode then + if P.atkMode==4 then + local M=#P.atker + if M>0 then + for i=1,M do + P:attack(P.atker[i],send,CB.color) end else - T=P.atking - P:freshTarget() + T=randomTarget(P) end - elseif #PLAYERS.alive>1 then - T=randomTarget(P) - end - if T then - P:attack(T,send,CB.color) + else + T=P.atking + P:freshTarget() end + elseif #PLAYERS.alive>1 then + T=randomTarget(P) + end + if T then + P:attack(T,send,CB.color) end - if P.sound and send>3 then SFX.play("emit",min(send,7)*.1)end end + if P.sound and send>3 then SFX.play("emit",min(send,7)*.1)end end --SFX & Vibrate @@ -1342,7 +1339,9 @@ do--Player.drop(P)--Place piece end if gbcc>0 then STAT.dig=STAT.dig+gbcc - STAT.digatk=STAT.digatk+atk*gbcc/cc + if atk>0 then + STAT.digatk=STAT.digatk+atk*gbcc/cc + end end local n=CB.name if dospin then