From 0008793a34ba08018c0bf93c63e62b88a234e99c Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 19 Aug 2022 11:09:25 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=E8=A2=AB?= =?UTF-8?q?=E5=8A=A8387=EF=BC=8C437=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Base/Passivity.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index bd28eb3f41..9a1d1097e1 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -9726,7 +9726,9 @@ local passivityList = { if haveRage>defRole.Rage then aa=aa+p1 else - defRole:AddBuff(Buff.Create(role, BuffName.BanBlood, p2)) + if p2~=-1 then + defRole:AddBuff(Buff.Create(role, BuffName.BanBlood, p2)) + end end end local val = -floor(BattleUtil.FP_Mul(aa, defRole:GetRoleData(BattlePropList[f1]))) @@ -11303,6 +11305,9 @@ local passivityList = { local v1 = args[3] local function onRoundChange(curRound) + if role:IsDead() then + return + end local arr = BattleUtil.ChooseTarget(role, target) local val = floor(BattleUtil.FP_Mul(v1, role:GetRoleData(BattlePropList[pro]))) for i=1, #arr do