From 3a8718d7036345ca89406112fd28faa991b7da24 Mon Sep 17 00:00:00 2001 From: kuangthree Date: Fri, 6 Oct 2023 14:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=81=B6=E5=B0=94=E5=87=BA=E7=8E=B0=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E5=BC=80=E5=90=AF=E6=A0=87=E5=87=86=E5=8C=85=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=EF=BC=8CchooseCharacter=E6=97=B6=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E8=BA=AB=E4=BB=BD=E6=97=B6=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/identity.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mode/identity.js b/mode/identity.js index 5dac34c85..f2af389b2 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -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);