From 7fc9813a7f02757be5e5ce3b3df4e60d001f8c9e Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Tue, 16 May 2023 15:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E7=A9=BA=E7=8C=AA=E5=85=AB=E6=88=92?= =?UTF-8?q?=E6=8A=80=E8=83=BD=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 | 6 ++++-- 1 file changed, 4 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 b8b49b079f..e91d7bb95f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -12315,8 +12315,10 @@ local passivityList = { end role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role) end, - -- 队友受到致命伤害后,伤害转移给自身,每场战斗每个武将限1次 + -- 队友受到致命伤害后,伤害转移给自身,并且伤害降低百分之[a]的伤害,每场战斗每个武将限1次 + -- a[float]//伤害百分比 [467] = function(role, args) + local a=args[1] local triggerList={} local onDamShift = function(func,atkRole,damage,defRole,skill) if BattleUtil.ChecklistIsContainValue(triggerList,defRole.position) then @@ -12329,7 +12331,7 @@ local passivityList = { if damage > curHp then table.insert(triggerList,defRole.position) - BattleUtil.ApplyDamage(skill, atkRole, role, damage) + BattleUtil.ApplyDamage(skill, atkRole, role, damage*a) func(true) end end