diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index c6523f8111..0713851417 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -9881,7 +9881,7 @@ local passivityList = { local type=args[1] local num=args[2] local time=args[3] - local triggerNum=0 + local timeList={} local onBuffImmune=function(buff,target,immCaster) if immCaster~=role then return @@ -9889,16 +9889,20 @@ local passivityList = { if buff.type~=type then return end - if triggerNum==time then + if timeList[target.position] and timeList[target.position]==time then return end BattleUtil.CalRage(role,target,num,CountTypeName.Add) - triggerNum=triggerNum+1 + if timeList[target.position] then + timeList[target.position]=timeList[target.position]+1 + else + timeList[target.position]=1 + end end BattleLogic.Event:AddEvent(BattleEventName.ImmuneDebuffSuccess,onBuffImmune,nil,nil,role) local onRoundChange=function() - triggerNum=0 + timeList={} end BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange,onRoundChange,nil,nil,role) end,