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

修复在移动端偶尔出现的,只开启标准包情况下,chooseCharacter时切换身份时弹窗的bug
This commit is contained in:
Spmario233 2023-10-07 12:47:24 +08:00 committed by GitHub
commit 5f6cbbd0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1441,7 +1441,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
return list2.randomGets(num).sort(lib.sort.character);
}
var getGroup=function(name){
if(lib.characterReplace[name]) return lib.character[lib.characterReplace[name][0]][1];
var characterReplace = lib.characterReplace[name];
if(characterReplace && characterReplace[0] && lib.character[characterReplace[0]]) return lib.character[characterReplace[0]][1];
return lib.character[name][1];
}
var list2x=list2.slice(0);