【战斗】======被动395 400修改

dev_chengFeng
wangzhenxing 2021-12-06 16:00:50 +08:00
parent df51b91fb0
commit 44643920ae
2 changed files with 30 additions and 21 deletions

View File

@ -9892,7 +9892,7 @@ local passivityList = {
if triggerNum==time then if triggerNum==time then
return return
end end
BattleUtil.CalRage(role,role,num,CountTypeName.Add) BattleUtil.CalRage(role,target,num,CountTypeName.Add)
triggerNum=triggerNum+1 triggerNum=triggerNum+1
end end
BattleLogic.Event:AddEvent(BattleEventName.ImmuneDebuffSuccess,onBuffImmune,nil,nil,role) BattleLogic.Event:AddEvent(BattleEventName.ImmuneDebuffSuccess,onBuffImmune,nil,nil,role)
@ -10067,9 +10067,10 @@ local passivityList = {
return return
end end
local ishave=BattleLogic.BuffMgr:HasBuff(defRole,t1,function(buff) 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 return true
end -- end
end) end)
if ishave then if ishave then
if defRole.Rage>=n1 then if defRole.Rage>=n1 then
@ -10091,9 +10092,9 @@ local passivityList = {
return return
end end
local ishave=BattleLogic.BuffMgr:HasBuff(defRole,t1,function(buff) local ishave=BattleLogic.BuffMgr:HasBuff(defRole,t1,function(buff)
if t1==BuffName.SigilSign then -- if t1==BuffName.SigilSign then
return true return true
end -- end
end) end)
if ishave then if ishave then
if defRole.Rage<n3 then if defRole.Rage<n3 then

View File

@ -121,24 +121,32 @@ function RoleLogic:Init(uid, data, position)
end end
--如果时363类型得被动就存起来 --如果时363类型得被动就存起来
if id==363 then 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 else
--如果有363修改的被动就修改 --如果有363修改的被动就修改
if coverPass[passivityId] then if coverPass[passivityId] then
local coverArgs=coverPass[passivityId] local list=coverPass[passivityId]
local len=floor((#coverArgs-1)/2) for i = 1, #list do
for i = 1, len do local coverArgs=list[i]
local id=0 local len=floor((#coverArgs-1)/2)
if #coverArgs>i+i then for i = 1, len do
id=coverArgs[i+i] local id=0
end if #coverArgs>i+i then
local value=0 id=coverArgs[i+i]
if #coverArgs>=i+i+1 then end
value=coverArgs[i+i+1] local value=0
end if #coverArgs>=i+i+1 then
if id~=0 and #args>=id and args[id] then value=coverArgs[i+i+1]
args[id]=value end
end if id~=0 and #args>=id and args[id] then
args[id]=value
end
end
end end
end end
end end