[战斗]======被动273修改

dev_chengFeng
wangzhenxing 2022-08-26 17:25:55 +08:00
parent 98681509b2
commit 8e753cf0cb
1 changed files with 19 additions and 2 deletions

View File

@ -6197,12 +6197,29 @@ local passivityList = {
end end
end,nil,nil,role) end,nil,nil,role)
end, end,
-- 释放技能时如目标处于[a]状态,解除周围[c]系神将的控制状态 -- 释放技能时如目标处于[a]状态,几率[b]解除周围[c]系神将的控制状态(状态1[d],状态2[e],状态3[f],状态4[g])
-- a[持续伤害状态]b[float] c[int] -- a[持续伤害状态]b[float] c[int]
[273] = function(role, args,id,judge) [273] = function(role, args,id,judge)
local dot = args[1] local dot = args[1]
local f1 = args[2] local f1 = args[2]
local ele =args[3] local ele =args[3]
local c1 =args[4]
local c2 =args[5]
local c3 =args[6]
local c4 =args[7]
local ctrls={}
if c1 then
table.insert(ctrls,c1)
end
if c2 then
table.insert(ctrls,c2)
end
if c3 then
table.insert(ctrls,c3)
end
if c4 then
table.insert(ctrls,c4)
end
local onHit = function(target, damage, bCrit, finalDmg) local onHit = function(target, damage, bCrit, finalDmg)
--屏蔽相同阵应 --屏蔽相同阵应
if target and target.camp==role.camp then if target and target.camp==role.camp then
@ -6215,7 +6232,7 @@ local passivityList = {
if value and value~=role and value.element==ele then if value and value~=role and value.element==ele then
-- 清除所有负面buff -- 清除所有负面buff
BattleLogic.BuffMgr:ClearBuff(value, function (buff) BattleLogic.BuffMgr:ClearBuff(value, function (buff)
return buff.type == BuffName.Control return buff.type == BuffName.Control and BattleUtil.ChecklistIsContainValue(ctrls,buff.ctrlType)
end) end)
end end
end end