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

[BUGFIX]修复上个属性配音相关PR报错问题。
This commit is contained in:
Spmario233 2023-10-10 22:44:07 +08:00 committed by GitHub
commit 81b47ffe11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -35458,13 +35458,14 @@
if(!lib.config.background_audio||get.type(card)=='equip'&&!lib.config.equip_audio) return;
var nature=get.natureList(card)[0];
if(lib.natureAudio[card.name]){
let shaAudio = lib.natureAudio.sha[nature];
if(shaAudio === 'default'){
let useAudio = lib.natureAudio[card.name][nature];
if(useAudio === 'default'){
game.playAudio('card',sex,`${card.name}_${nature}`);
}else if(shaAudio[sex]){
game.playAudio(shaAudio[sex]);
}
return;
}else if(useAudio && useAudio[sex]){
game.playAudio(useAudio[sex]);
return;
}
}
const audio=lib.card[card.name].audio;
if(typeof audio=='string'){
@ -59278,7 +59279,7 @@
if(node._nointro) return;
if(typeof node._customintro=='function'){
if(node._customintro(uiintro,evt)===false) return;
lib.placePoppedDialog(uiintro,evt);
if(evt)lib.placePoppedDialog(uiintro,evt);
}
else if(Array.isArray(node._customintro)){
var caption=node._customintro[0];