From 2debb92e61001825c2c29173650c65c62afa151d Mon Sep 17 00:00:00 2001 From: kuangthree Date: Tue, 10 Oct 2023 22:22:18 +0800 Subject: [PATCH] =?UTF-8?q?[BUGFIX]=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=B8=AA?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=85=8D=E9=9F=B3=E7=9B=B8=E5=85=B3PR?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/game/game.js b/game/game.js index e28e123fd..4ed9fadb3 100644 --- a/game/game.js +++ b/game/game.js @@ -35458,13 +35458,14 @@ if(!lib.config.background_audio||get.type(card)=='equip'&&!lib.config.equip_audio) return; var nature=get.natureList(card)[0]; if(lib.natureAudio[card.name]){ - let shaAudio = lib.natureAudio.sha[nature]; - if(shaAudio === 'default'){ + let useAudio = lib.natureAudio[card.name][nature]; + if(useAudio === 'default'){ game.playAudio('card',sex,`${card.name}_${nature}`); - }else if(shaAudio[sex]){ - game.playAudio(shaAudio[sex]); + return; + }else if(useAudio && useAudio[sex]){ + game.playAudio(useAudio[sex]); + return; } - return; } const audio=lib.card[card.name].audio; if(typeof audio=='string'){