Merge pull request #387 from kuangshen04/PR-Branch

修复我写的trySkillAudio中的一个sb错误
This commit is contained in:
Spmario233 2023-09-25 21:08:32 +08:00 committed by GitHub
commit 02fc64a292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"extends": "eslint:recommended", "extends": "chrome 46",
"env": { "env": {
"browser": true, "browser": true,
"node": true, "node": true,

View File

@ -34258,7 +34258,7 @@
} }
} }
var history=[]; var history=[];
for(;;){//可以嵌套引用了 while(true){//可以嵌套引用了
if(history.includes(audioname)) break; if(history.includes(audioname)) break;
history.push(audioname); history.push(audioname);
if(typeof audioinfo=='string'&&lib.skill[audioinfo]){ if(typeof audioinfo=='string'&&lib.skill[audioinfo]){
@ -34275,9 +34275,9 @@
break; break;
} }
if(Array.isArray(info.audioname)&&player){ if(Array.isArray(info.audioname)&&player){
if(info.audioname.includes(player.name)&&!info.audioname2[player.name]) audioname+='_'+player.name; if(info.audioname.includes(player.name)&&(!info.audioname2||!info.audioname2[player.name])) audioname+='_'+player.name;
else if(info.audioname.includes(player.name1)&&!info.audioname2[player.name1]) audioname+='_'+player.name1; else if(info.audioname.includes(player.name1)&&(!info.audioname2||!info.audioname2[player.name1])) audioname+='_'+player.name1;
else if(info.audioname.includes(player.name2)&&!info.audioname2[player.name2]) audioname+='_'+player.name2; else if(info.audioname.includes(player.name2)&&(!info.audioname2||!info.audioname2[player.name2])) audioname+='_'+player.name2;
} }
if(typeof audioinfo=='string'){ if(typeof audioinfo=='string'){
if(audioinfo.indexOf('ext:')!=0) return; if(audioinfo.indexOf('ext:')!=0) return;