From 8a87f0a8a2e2e94984ffaeef025270ecfde11c97 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 13 Nov 2020 18:23:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=9191=20?= =?UTF-8?q?=E8=A2=AB=E5=8A=A8=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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index 9321523e16..6a8e2e7647 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -1536,8 +1536,8 @@ local passivityList = { [91] = function(role, args) local f1 = args[1] local ct = args[2] - local passivityDamaging = function(func, caster, damage) - if func then + local passivityDamaging = function(func, caster, damage,skill, dotType, bCrit) + if func and skill and (skill.type == BattleSkillType.Special or skill.type == BattleSkillType.Extra) then local dd = BattleUtil.CountValue(damage, f1, ct) - damage func(-floor(BattleUtil.ErrorCorrection(dd))) end @@ -5399,7 +5399,6 @@ local passivityList = { local onSkillEnd = function(skill) if skill and skill.owner==skiller then --if curBuff then - LogError("清除buff") -- BattleLogic.BuffMgr:ClearBuff(role, function (buff) -- return buff==curBuff -- end)