Merge pull request #224 from Tipx-L/PR-Branch

Ensure the compatibility.
This commit is contained in:
Spmario233 2023-08-22 12:53:14 +08:00 committed by GitHub
commit f3b2cda7da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -9750,6 +9750,7 @@
}
str=`if(event.step==${k}){event.finish();return;}`+str;
}
str=`"use strict";\n${str}`;
return (new Function('event','step','source','player','target','targets',
'card','cards','skill','forced','num','trigger','result',
'_status','lib','game','ui','get','ai',str));
@ -11179,7 +11180,10 @@
game.resume();
_status.imchoosing=false;
if(roundmenu) ui.roundmenu.style.display='';
if(ui.backgroundMusic) ui.backgroundMusic.play().catch(()=>void 0);
if(ui.backgroundMusic){
var promise=ui.backgroundMusic.play();
if(promise) promise.catch(()=>void 0);
}
hitsound_audio.remove();
},1000);
};
@ -11368,7 +11372,10 @@
if(dialog){
dialog.close();
}
if(ui.backgroundMusic) ui.backgroundMusic.play().catch(()=>void 0);
if(ui.backgroundMusic){
var promise=ui.backgroundMusic.play();
if(promise) promise.catch(()=>void 0);
}
},event.videoId,event.time);
var result=event.result||result;
event.result=result;
@ -18271,7 +18278,7 @@
if(cardRecastable!='unchanged') return cardRecastable;
if(get.position(card)!='h') return false;
const info=get.info(card);
return typeof info.chongzhu=='function'?info.chongzhu(event,player):info.chongzhu;
return typeof info.chongzhu=='function'?info.chongzhu(_status.event,this):info.chongzhu;
},
//装备栏相关
//判断一名角色的某个区域是否被废除