Merge pull request #903 from lieren2023/lieren2023-patch-1

修复右键武将弹窗的bug
This commit is contained in:
Spmario233 2024-02-04 00:51:21 +08:00 committed by GitHub
commit 22e6720094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -3616,8 +3616,10 @@ export class Get extends Uninstantable {
if (!lib.characterInitFilter[node.link]) return true;
return lib.characterInitFilter[node.link](tag) !== false;
});
const str = initFilters.reduce((strx, stry) => strx + lib.InitFilter[stry] + '<br>', '').slice(0, -4);
uiintro.addText(str);
if(initFilters.length){
const str = initFilters.reduce((strx, stry) => strx + lib.InitFilter[stry] + '<br>', '').slice(0, -4);
uiintro.addText(str);
}
}
if (node._banning) {