From a645a1f8d77f7e1b7d84ae30f093021aa25a31e8 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 11 Feb 2022 15:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=91=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=3D=E6=96=A9=E6=9D=80=E6=96=B9=E6=B3=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua index ea53019f13..bb575fcecf 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua @@ -569,7 +569,9 @@ function BattleUtil.Seckill(skill, atkRole, defRole,addDamagePro) return end local damage = defRole:GetRoleData(RoleDataName.Hp) - damage=floor(BattleUtil.FP_Mul(damage,1+addDamagePro)) + if addDamagePro then + damage=floor(BattleUtil.FP_Mul(damage,1+addDamagePro)) + end local finalDmg = defRole.data:SubValue(RoleDataName.Hp, damage) if finalDmg >= 0 then if defRole:GetRoleData(RoleDataName.Hp) <= 0 and not defRole:IsDead() then