Merge pull request #387 from kuangshen04/PR-Branch
修复我写的trySkillAudio中的一个sb错误
This commit is contained in:
commit
02fc64a292
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": "eslint:recommended",
|
"extends": "chrome 46",
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true,
|
"node": true,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue