[战斗]============被动137修改 添加查找没有触发不灭的技能目标
parent
f929826eba
commit
1a808dfd54
|
@ -205,7 +205,16 @@ function EffectCaster:GetDirectTargetsNoExile()
|
|||
return list
|
||||
end
|
||||
|
||||
|
||||
-- 获取直接目标和没有被放逐的目标,不包含不灭可能为空
|
||||
function EffectCaster:GetDirectTargetsNoNODead()
|
||||
local list = {}
|
||||
for _, role in ipairs(self.effectTargets[1]) do
|
||||
if not BattleLogic.BuffMgr:HasBuff(role,BuffName.NoDead) then
|
||||
table.insert(list, role)
|
||||
end
|
||||
end
|
||||
return list
|
||||
end
|
||||
|
||||
-- 获取技能目标最大人数
|
||||
function EffectCaster:GetMaxTargetNum()
|
||||
|
|
|
@ -2720,7 +2720,7 @@ local passivityList = {
|
|||
return
|
||||
end
|
||||
if skill.type == BattleSkillType.Special then
|
||||
local list = skill:GetDirectTargets()
|
||||
local list = skill:GetDirectTargetsNoNoDead()
|
||||
if list then
|
||||
local tv = floor(BattleUtil.ErrorCorrection(role:GetRoleData(BattlePropList[pro]) * f1))
|
||||
for _, r in ipairs(list) do
|
||||
|
|
|
@ -125,6 +125,11 @@ end
|
|||
function Skill:GetDirectTargetsNoExile()
|
||||
return self.effectCaster:GetDirectTargetsNoExile()
|
||||
end
|
||||
|
||||
-- 获取直接目标,不包含触发不灭的目标,可能为空
|
||||
function Skill:GetDirectTargetsNoNoDead()
|
||||
return self.effectCaster:GetDirectTargetsNoNODead()
|
||||
end
|
||||
-- 获取技能目标最大人数
|
||||
function Skill:GetMaxTargetNum()
|
||||
return self.effectCaster:GetMaxTargetNum()
|
||||
|
|
Loading…
Reference in New Issue