修复模式禁用技能不影响dynamicTranslate的bug

This commit is contained in:
mengxinzxz 2023-10-24 08:47:10 +08:00 committed by GitHub
parent 893e49f0a2
commit ecba8d4dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -41758,16 +41758,19 @@
if(info.forbid&&info.forbid.contains(mode)){
lib.skill[i]={};
if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用';
if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用';
return;
}
if(info.mode&&info.mode.contains(mode)==false){
lib.skill[i]={};
if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用';
if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用';
return;
}
if(info.available&&info.available(mode)==false){
lib.skill[i]={};
if(lib.translate[iInfo]) lib.translate[iInfo]='此模式下不可用';
if(lib.dynamicTranslate[i]) lib.dynamicTranslate[i]=()=>'此模式下不可用';
return;
}
if(info.viewAs&&typeof info.viewAs!='function'){