修复同将模式如果开启神武将选择势力,AI不更改势力的bug

This commit is contained in:
mengxinzxz 2023-11-28 12:52:22 +08:00
parent 7834d643bd
commit af454aa7b6
1 changed files with 12 additions and 0 deletions

View File

@ -1833,6 +1833,18 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
target.hp++;
target.maxHp++;
target.update();
if(get.config('choose_group')){
var list=lib.group.slice(0);
list.remove('shen');
game.players.forEach(i=>{
if(i.group=='shen'&&i!=game.me){
var group=list.randomGet();
i.group=group;
i.node.name.dataset.nature=get.groupnature(group);
i.update();
}
});
}
},
chooseCharacterAi:function(player,list,list2,back){
if(player==game.zhu){