minor fix

This commit is contained in:
mengxinzxz 2024-04-05 00:01:49 +08:00
parent e8eb4ea934
commit 6089e922aa
1 changed files with 6 additions and 3 deletions

View File

@ -144,8 +144,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
for(var i in lib.character){ for(var i in lib.character){
if(lib.character[i][1]=='shen'){ if(lib.character[i][1]=='shen'){
if(lib.character[i][4]){ if(lib.character[i][4]){
var group=lib.character[i][4].find(group=>lib.group.includes(group)||group=='key'); var group=lib.character[i][4].find(group=>lib.group.includes(group)||group=='key'||group.startsWith('gzgroup:'));
if(group) lib.character[i][1]=group; if(group){
if(group.startsWith('gzgroup:')) lib.character[i][1]=group.slice(8);
else lib.character[i][1]=group;
}
else lib.character[i][1]='qun'; else lib.character[i][1]='qun';
} }
else lib.character[i][1]='qun'; else lib.character[i][1]='qun';
@ -600,7 +603,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
gz_gaoshun:['male','qun',4,['fakexunxi','fakehuanjia']], gz_gaoshun:['male','qun',4,['fakexunxi','fakehuanjia']],
gz_jin_jiachong:['male','jin',3,['fakexiongshu','fakejianhui']], gz_jin_jiachong:['male','jin',3,['fakexiongshu','fakejianhui']],
gz_jin_yanghu:['male','jin',4,['fakechongxin','fakeweirong']], gz_jin_yanghu:['male','jin',4,['fakechongxin','fakeweirong']],
} },
}, },
skill:{ skill:{
//官盗2023 //官盗2023