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