From f621ae61f8317e2a74e6e8d3a9a5296d0c41084d Mon Sep 17 00:00:00 2001 From: xuehy <76470576@qq.com> Date: Mon, 28 Oct 2024 09:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8"last"?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=97=A0=E6=B3=95=E5=88=87=E6=8D=A2=E5=88=B0?= =?UTF-8?q?=E4=B8=8A=E4=B8=80=E9=A1=B9=E6=9E=AA=E6=A2=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Soldier76.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Soldier76.lua b/Soldier76.lua index a2a6ae4..712ca86 100644 --- a/Soldier76.lua +++ b/Soldier76.lua @@ -768,7 +768,9 @@ function pubg.findInSeries (cmd) pubg.gunIndex = pubg.gunIndex + 1 end elseif "last" == cmd then - pubg.gunIndex = #pubg.gun[pubg.bulletType] + if pubg.gunIndex > 1 then + pubg.gunIndex = pubg.gunIndex - 1 + end end pubg.setGun(pubg.gun[pubg.bulletType][pubg.gunIndex])