Merge pull request #308 from universe-st/PR-Branch

当character4中包含die时不添加die
This commit is contained in:
Spmario233 2023-09-10 21:25:23 +08:00 committed by GitHub
commit 040cd19c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -36098,7 +36098,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);
if(!pack[i][j][4].some((str)=>{
return typeof str == 'string' && str.indexOf('die:') == 0;
})){
pack[i][j][4].add(audiosrc); 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);