diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua index b45ce78798..e1014fea71 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua @@ -2084,14 +2084,14 @@ local effectList = { len=v3 end local ft = target:GetRoleData(RoleDataName.Hp)/target:GetRoleData(RoleDataName.MaxHp) - if ft < f2 then + if ft < f2+v2*len then isSecKill = BattleUtil.RandomAction(f3+len*v1, function() -- 秒杀 local isBoss=BattleUtil.CheckIsBoss(target) if isBoss then return end - BattleUtil.Seckill(skill, caster, target,v2*len) + BattleUtil.Seckill(skill, caster, target) end) end end diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua index bb575fcecf..015af0a1e6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua @@ -563,15 +563,12 @@ function BattleUtil.CheckIsBoss(role) end -- 秒杀 -function BattleUtil.Seckill(skill, atkRole, defRole,addDamagePro) +function BattleUtil.Seckill(skill, atkRole, defRole) -- 灵兽无效 if defRole.type == BattleUnitType.Monster or defRole.type == BattleUnitType.Player then return end local damage = defRole:GetRoleData(RoleDataName.Hp) - 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