【战斗】======257被动修改
parent
16c16dda5f
commit
4c92d13393
|
|
@ -5684,23 +5684,25 @@ local passivityList = {
|
|||
return
|
||||
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
|
||||
local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1))
|
||||
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
|
||||
list = BattleUtil.SortByHpFactor(list,0)
|
||||
-- if not list[1]:IsDead() then
|
||||
if list then
|
||||
if not point then
|
||||
point=list[1]
|
||||
end
|
||||
BattleUtil.FinalDamage(nil,role,point,dmg)
|
||||
if curNum>=maxNum then
|
||||
return
|
||||
end
|
||||
if num>0 then
|
||||
BattleUtil.CalRage(role,point,num,CountTypeName.Sub)
|
||||
curNum=curNum+num
|
||||
end
|
||||
end
|
||||
BattleLogic.WaitForTrigger(BattleLogic.GameDeltaTime,function()
|
||||
local dmg= floor(BattleUtil.ErrorCorrection((damage-finalDmg)*f1))
|
||||
local list = RoleManager.Query(function(v) return v.camp ~= role.camp end)
|
||||
list = BattleUtil.SortByHpFactor(list,0)
|
||||
-- if not list[1]:IsDead() then
|
||||
if list then
|
||||
if not point then
|
||||
point=list[1]
|
||||
end
|
||||
BattleUtil.FinalDamage(nil,role,point,dmg)
|
||||
if curNum>=maxNum then
|
||||
return
|
||||
end
|
||||
if num>0 then
|
||||
BattleUtil.CalRage(role,point,num,CountTypeName.Sub)
|
||||
curNum=curNum+num
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
role.Event:AddEvent(BattleEventName.RoleHit, onRoleHit,nil,nil,role)
|
||||
|
|
@ -10163,6 +10165,7 @@ local passivityList = {
|
|||
end
|
||||
|
||||
role.Event:AddEvent(BattleEventName.BuffCaster, OnBuffStart,nil,nil,role)
|
||||
end
|
||||
end,
|
||||
|
||||
}
|
||||
return passivityList
|
||||
Loading…
Reference in New Issue