【战斗】============被动472修改

dev_one_discount
wangzhenxing 2023-08-25 17:14:55 +08:00
parent d9778dbae4
commit 0d6566c725
1 changed files with 9 additions and 4 deletions

View File

@ -12454,8 +12454,13 @@ local passivityList = {
[472] = function(role, args)
local ct = args[1]
local time = args[2]
role.sunMaxTime = BattleUtil.CountValue(role.sunMaxTime,time,ct)
role.niMaxTime = BattleUtil.CountValue(role.niMaxTime,time,ct)
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound)
-- 第i1回合开始
if curRound == 1 then
role.sunMaxTime = BattleUtil.CountValue(role.sunMaxTime,time,ct)
role.niMaxTime = BattleUtil.CountValue(role.niMaxTime,time,ct)
end
end)
end,
-- 处于[a]效果[b]状态的目标, 释放技能后自身改变[c][d]点怒气,
-- a[int buff大类型],b[int buff小类型],c[int 改变类型],d[int]
@ -12473,8 +12478,8 @@ local passivityList = {
if skill.type~=BattleSkillType.Special and skill.type~=BattleSkillType.Extra then
return
end
if BattleLogic.BuffMgr:HasBuff(skill.owner, t1, function(buff)
return buff.caster == role and buff.signType == t2 end) then
--local list=BattleLogic.BuffMgr:GetAllBuffByFunc(function(buff) return buff.target==caster and buff.type==t1 and buff.damageType==t2 end)
if BattleLogic.BuffMgr:HasBuff(skill.owner, t1, function(buff) return buff.caster == role and buff.signType == t2 end) then
BattleLogic.WaitForTrigger(2, function () --延迟一帧移除事件,防止触发帧和结束帧为同一帧时,被动未移除
BattleUtil.CalRage(role, skill.owner, v1, ct)
end)