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

dev_chengFeng
wangzhenxing 2021-12-07 21:19:14 +08:00
parent 16c16dda5f
commit 4c92d13393
1 changed files with 21 additions and 18 deletions

View File

@ -5684,6 +5684,7 @@ local passivityList = {
return return
end end
if skill and skill.owner==role and (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra) and target:IsDead() and not BattleUtil.CheckIsNoDead(target) then if skill and skill.owner==role and (skill.type == BattleSkillType.Special or skill.type==BattleSkillType.Extra) and target:IsDead() and not BattleUtil.CheckIsNoDead(target) then
BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime,function()
local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1)) local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1))
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end) local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
list = BattleUtil.SortByHpFactor(list,0) list = BattleUtil.SortByHpFactor(list,0)
@ -5701,6 +5702,7 @@ local passivityList = {
curNum=curNum+num curNum=curNum+num
end end
end end
end)
end end
end end
role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit,nil,nil,role) role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit,nil,nil,role)
@ -10163,6 +10165,7 @@ local passivityList = {
end end
role.Event:AddEvent(BattleEventName.BuffCaster, OnBuffStart,nil,nil,role) role.Event:AddEvent(BattleEventName.BuffCaster, OnBuffStart,nil,nil,role)
end end,
} }
return passivityList return passivityList