【战斗】=====被动99 372 211 188被动添加空判断
parent
a39a791f9f
commit
221f5cb13e
|
@ -1717,6 +1717,9 @@ local passivityList = {
|
||||||
if skill.type == BattleSkillType.Special then
|
if skill.type == BattleSkillType.Special then
|
||||||
role.Event:RemoveEvent(BattleEventName.RoleHit, OnHit)
|
role.Event:RemoveEvent(BattleEventName.RoleHit, OnHit)
|
||||||
local arr = RoleManager.NoOrder(function (r) return r.camp == role.camp and r.deadFilter end)
|
local arr = RoleManager.NoOrder(function (r) return r.camp == role.camp and r.deadFilter end)
|
||||||
|
if arr==nil or #arr==0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
BattleUtil.SortByHpFactor(arr, 1)
|
BattleUtil.SortByHpFactor(arr, 1)
|
||||||
-- 检测技能伤害<E4BCA4><E5AEB3><EFBFBD>疗加成
|
-- 检测技能伤害<E4BCA4><E5AEB3><EFBFBD>疗加成
|
||||||
local f = BattleUtil.CheckSkillDamageHeal(f1, role, arr[1])
|
local f = BattleUtil.CheckSkillDamageHeal(f1, role, arr[1])
|
||||||
|
@ -3969,6 +3972,9 @@ local passivityList = {
|
||||||
local list = RoleManager.Query(function(v)
|
local list = RoleManager.Query(function(v)
|
||||||
return v.camp == role.camp and v.position ~= role.position
|
return v.camp == role.camp and v.position ~= role.position
|
||||||
end)
|
end)
|
||||||
|
if list==nil or #list==0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
local ff = 1 -- 分摊比
|
local ff = 1 -- 分摊比
|
||||||
-- 检测被动对分摊比的影响
|
-- 检测被动对分摊比的影响
|
||||||
local cl = {}
|
local cl = {}
|
||||||
|
@ -4572,6 +4578,9 @@ local passivityList = {
|
||||||
if curRound == round then
|
if curRound == round then
|
||||||
local list = RoleManager.Query(function(r) return r.camp == role.camp end)
|
local list = RoleManager.Query(function(r) return r.camp == role.camp end)
|
||||||
list = BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
list = BattleUtil.SortByProp(list, RoleDataName.Hp, 1)
|
||||||
|
if list[1]==nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
local base = list[1]:GetRoleData(BattlePropList[pro])
|
local base = list[1]:GetRoleData(BattlePropList[pro])
|
||||||
local value = floor(BattleUtil.ErrorCorrection(base* f1))
|
local value = floor(BattleUtil.ErrorCorrection(base* f1))
|
||||||
BattleUtil.ApplyTreat(list[1], list[1], value)
|
BattleUtil.ApplyTreat(list[1], list[1], value)
|
||||||
|
@ -9143,6 +9152,9 @@ local passivityList = {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
list = BattleUtil.SortByProp(list, BattlePropList[pro],sort)
|
list = BattleUtil.SortByProp(list, BattlePropList[pro],sort)
|
||||||
|
if list==nil or #list==0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
BattleUtil.CalRage(role,list[1],addNum,ct)
|
BattleUtil.CalRage(role,list[1],addNum,ct)
|
||||||
end
|
end
|
||||||
role.Event:AddEvent(BattleEventName.SkillCastEnd,onSkillCast,nil,nil,role)
|
role.Event:AddEvent(BattleEventName.SkillCastEnd,onSkillCast,nil,nil,role)
|
||||||
|
|
Loading…
Reference in New Issue