音效容错

This commit is contained in:
xiekaidong 2023-06-05 16:24:06 +08:00
parent 9f6fbf2903
commit 628da8aade

View File

@ -1411,7 +1411,9 @@ function BattleUnitComp:onSkillTakeEffect(skill, isFinalBlock, validEffectIdx)
break break
end end
end end
BattleHelper:playSkillSound(soundHit[soundIndex], 0) if soundHit[soundIndex] and soundHit[soundIndex] > 0 then
BattleHelper:playSkillSound(soundHit[soundIndex], 0)
end
end end
end end
end end