From fde119c5cbbeda749c7ec8d564a82f25b442ce07 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 12 Jan 2023 11:02:04 +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=3D=3D=3D=3D=3D=3D=E5=BE=A1=E7=94=B2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua index 266987ee22..ab94b52d16 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleUtil.lua @@ -708,8 +708,8 @@ function BattleUtil.ApplyDamageNoPassive(skill, atkRole, defRole, damage, bCrit, end --计算血量防护 local realDamage=damage - --血量防护只会防直接伤害 - if defRole.bloodShield and skill then + --血量防护只会防直接伤害 也能防护间接伤害 2023/01/11 + if defRole.bloodShield then realDamage=math.abs(defRole.bloodShield:CountBloodValue(damage,atkRole)) -- damage=realDamage end @@ -870,8 +870,8 @@ function BattleUtil.FinalDamage(skill, atkRole, defRole, damage, bCrit, damageTy end --计算血量防护 local realDamage=damage - --血量防护只会防直接伤害 - if defRole.bloodShield and skill then + --血量防护只会防直接伤害 也能防护间接伤害 2023/01/11 + if defRole.bloodShield then realDamage=math.abs(defRole.bloodShield:CountBloodValue(damage,atkRole)) -- damage=realDamage end @@ -953,8 +953,8 @@ function BattleUtil.FinalDamageCountShield(skill, atkRole, defRole, damage, bCri end --计算血量防护 local realDamage=damage - --血量防护只会防直接伤害 - if defRole.bloodShield and skill then + --血量防护只会防直接伤害 也能防护间接伤害 2023/01/11 + if defRole.bloodShield then realDamage=math.abs(defRole.bloodShield:CountBloodValue(damage,atkRole)) -- damage=realDamage end