修复在移动端偶尔出现的,只开启标准包情况下,chooseCharacter时切换身份时弹窗的bug

This commit is contained in:
kuangthree 2023-10-06 14:20:29 +08:00
parent 96d7a749c1
commit 3a8718d703
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); return list2.randomGets(num).sort(lib.sort.character);
} }
var getGroup=function(name){ 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]; return lib.character[name][1];
} }
var list2x=list2.slice(0); var list2x=list2.slice(0);