【战斗】======被动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,11 +121,18 @@ 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]
for i = 1, #list do
local coverArgs=list[i]
local len=floor((#coverArgs-1)/2) local len=floor((#coverArgs-1)/2)
for i = 1, len do for i = 1, len do
local id=0 local id=0
@ -142,6 +149,7 @@ function RoleLogic:Init(uid, data, position)
end end
end end
end end
end
if BattleUtil.Passivity[id] then if BattleUtil.Passivity[id] then
BattleUtil.Passivity[id](self, args,passivityId,judge) BattleUtil.Passivity[id](self, args,passivityId,judge)
BattleLogManager.Log( BattleLogManager.Log(