当character4中包含die时不添加die

This commit is contained in:
kuangthree 2023-09-10 09:07:57 +08:00
parent d3a575900d
commit 08a88953e6
1 changed files with 5 additions and 1 deletions

View File

@ -36086,7 +36086,11 @@
} }
const audiosrc='die:ext:'+extname+'/'+j+'.mp3'; const audiosrc='die:ext:'+extname+'/'+j+'.mp3';
pack[i][j][4].add(imgsrc); 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')|| if(pack[i][j][4].contains('boss')||
pack[i][j][4].contains('hiddenboss')){ pack[i][j][4].contains('hiddenboss')){
lib.config.forbidai.add(j); lib.config.forbidai.add(j);