【战斗】======被动395 400修改
parent
df51b91fb0
commit
44643920ae
|
@ -9892,7 +9892,7 @@ local passivityList = {
|
|||
if triggerNum==time then
|
||||
return
|
||||
end
|
||||
BattleUtil.CalRage(role,role,num,CountTypeName.Add)
|
||||
BattleUtil.CalRage(role,target,num,CountTypeName.Add)
|
||||
triggerNum=triggerNum+1
|
||||
end
|
||||
BattleLogic.Event:AddEvent(BattleEventName.ImmuneDebuffSuccess,onBuffImmune,nil,nil,role)
|
||||
|
@ -10067,9 +10067,10 @@ local passivityList = {
|
|||
return
|
||||
end
|
||||
local ishave=BattleLogic.BuffMgr:HasBuff(defRole,t1,function(buff)
|
||||
if buff.Type==BuffName.SigilSign then
|
||||
-- if buff.Type==BuffName.SigilSign then
|
||||
-- LogError("t1==="..t1)
|
||||
return true
|
||||
end
|
||||
-- end
|
||||
end)
|
||||
if ishave then
|
||||
if defRole.Rage>=n1 then
|
||||
|
@ -10091,9 +10092,9 @@ local passivityList = {
|
|||
return
|
||||
end
|
||||
local ishave=BattleLogic.BuffMgr:HasBuff(defRole,t1,function(buff)
|
||||
if t1==BuffName.SigilSign then
|
||||
return true
|
||||
end
|
||||
-- if t1==BuffName.SigilSign then
|
||||
return true
|
||||
-- end
|
||||
end)
|
||||
if ishave then
|
||||
if defRole.Rage<n3 then
|
||||
|
|
|
@ -121,24 +121,32 @@ function RoleLogic:Init(uid, data, position)
|
|||
end
|
||||
--如果时363类型得被动就存起来
|
||||
if id==363 then
|
||||
coverPass[args[1]]=args
|
||||
if coverPass[args[1]] then
|
||||
table.insert(coverPass[args[1]],args)
|
||||
else
|
||||
coverPass[args[1]]={}
|
||||
table.insert(coverPass[args[1]],args)
|
||||
end
|
||||
else
|
||||
--如果有363修改的被动就修改
|
||||
if coverPass[passivityId] then
|
||||
local coverArgs=coverPass[passivityId]
|
||||
local len=floor((#coverArgs-1)/2)
|
||||
for i = 1, len do
|
||||
local id=0
|
||||
if #coverArgs>i+i then
|
||||
id=coverArgs[i+i]
|
||||
end
|
||||
local value=0
|
||||
if #coverArgs>=i+i+1 then
|
||||
value=coverArgs[i+i+1]
|
||||
end
|
||||
if id~=0 and #args>=id and args[id] then
|
||||
args[id]=value
|
||||
end
|
||||
local list=coverPass[passivityId]
|
||||
for i = 1, #list do
|
||||
local coverArgs=list[i]
|
||||
local len=floor((#coverArgs-1)/2)
|
||||
for i = 1, len do
|
||||
local id=0
|
||||
if #coverArgs>i+i then
|
||||
id=coverArgs[i+i]
|
||||
end
|
||||
local value=0
|
||||
if #coverArgs>=i+i+1 then
|
||||
value=coverArgs[i+i+1]
|
||||
end
|
||||
if id~=0 and #args>=id and args[id] then
|
||||
args[id]=value
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue