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