From b6ec2b0f890be74f78984d646dcfabfc820fffba Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 4 Nov 2021 15:40:14 +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=E8=A2=AB=E5=8A=A8360=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 | 9 ++++++--- 1 file changed, 6 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 080f21c777..9fa7d0fb85 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -8638,13 +8638,16 @@ local passivityList = { if skill and not skill.isTriggerJudge and judge==1 then return end + if skill.owner==role then + return + end if time==num then return end - if role.element~=camp then + if skill.owner.element~=camp then return end - if role.job==job then + if skill.owner.job==job then return end if skill.type == BattleSkillType.Special then @@ -8654,7 +8657,7 @@ local passivityList = { end) end end - role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role) + BattleLogic.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd,nil,nil,role) local function onRoundChange() time=0