From 08a88953e6691c1ffc10fb9ec5b43ae4307568d7 Mon Sep 17 00:00:00 2001 From: kuangthree Date: Sun, 10 Sep 2023 09:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93character4=E4=B8=AD=E5=8C=85=E5=90=ABd?= =?UTF-8?q?ie=E6=97=B6=E4=B8=8D=E6=B7=BB=E5=8A=A0die?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 8441b63d2..ef6da0a26 100644 --- a/game/game.js +++ b/game/game.js @@ -36086,7 +36086,11 @@ } const audiosrc='die:ext:'+extname+'/'+j+'.mp3'; pack[i][j][4].add(imgsrc); - pack[i][j][4].add(audiosrc); + if(!pack[i][j][4].some((str)=>{ + return typeof str == 'string' && str.indexOf('die:') == 0; + })){ + pack[i][j][4].add(audiosrc); + } if(pack[i][j][4].contains('boss')|| pack[i][j][4].contains('hiddenboss')){ lib.config.forbidai.add(j);