[战斗]======被动395修改
parent
6867a738d8
commit
81e42565e4
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue