bug修复
This commit is contained in:
parent
fabf2372d4
commit
8c779f826c
@ -1408,14 +1408,15 @@ function BattleUnitComp:onSkillTakeEffect(skill, isFinalBlock, validEffectIdx)
|
||||
end
|
||||
|
||||
function BattleUnitComp:judgeSkillEffectCondition(skill, index)
|
||||
if not skill or skill:haveBuffCondition() then
|
||||
if not skill or not skill:haveBuffCondition() then
|
||||
return true
|
||||
end
|
||||
|
||||
local buffConditionIndex, conditionRel = skill:getBuffConditionRel(index)
|
||||
if not buffConditionIndex then
|
||||
local rel = skill:getBuffConditionRel(index)
|
||||
if not rel then
|
||||
return true
|
||||
end
|
||||
local buffConditionIndex, conditionRel = rel[1], rel[2]
|
||||
local buffConditions = skill:getBuffCondition(buffConditionIndex)
|
||||
|
||||
return BATTLE_SKILL_CONDITION_HANDLE.judgeSkillEffectCondition(buffConditions, conditionRel, self.battleController)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user