From 6e2b1c1a179c35ac914a5d26acf4b61017dc3b2e Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 24 Dec 2021 14:00:51 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=3D?= =?UTF-8?q?=E8=A2=AB=E5=8A=A856=20=20=E8=A2=AB=E5=8A=A8368=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/Base/Passivity.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index 1e71e61659..f453fe0a8b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -1008,7 +1008,7 @@ local passivityList = { if skill and (skill.type==BattleSkillType.Special or skill.type==BattleSkillType.Extra or skill.type==BattleSkillType.DeadSkill ) then local ar1 = floor(BattleUtil.FP_Mul(defRole:GetRoleData(RoleDataName.MaxHp), f1)) --local ar2 = BattleUtil.FP_Mul(role:GetRoleData(RoleDataName.Attack), 2.5) - BattleUtil.FinalDamage(nil, role, defRole, ar1) + BattleUtil.FinalDamageCountShield(nil, role, defRole, ar1) --lastTrigger = 0 end end @@ -9012,7 +9012,7 @@ local passivityList = { return end role.Event:RemoveEvent(BattleEventName.RoleTreat,onRoleTreat,nil,nil,role) - local list = skill:GetDirectTargetsNoNoDead() + local list = RoleManager.Query(function(v) return v.camp == role.camp end) if list and #list>0 then BattleUtil.SortByHpFactor(list,type) BattleUtil.FinalTreat(role,list[1],floor(addHp))