From 628da8aade1df1c27af79be4db21a7b651cf3b21 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 5 Jun 2023 16:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E6=95=88=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/component/battle_unit_comp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/app/module/battle/component/battle_unit_comp.lua b/lua/app/module/battle/component/battle_unit_comp.lua index 9240e0b8..007c90f6 100644 --- a/lua/app/module/battle/component/battle_unit_comp.lua +++ b/lua/app/module/battle/component/battle_unit_comp.lua @@ -1411,7 +1411,9 @@ function BattleUnitComp:onSkillTakeEffect(skill, isFinalBlock, validEffectIdx) break end end - BattleHelper:playSkillSound(soundHit[soundIndex], 0) + if soundHit[soundIndex] and soundHit[soundIndex] > 0 then + BattleHelper:playSkillSound(soundHit[soundIndex], 0) + end end end end