修复【恃纵】ai

This commit is contained in:
157 2024-02-26 17:24:48 +08:00
parent 3c534ad574
commit 54b549e13c
1 changed files with 1 additions and 6 deletions

View File

@ -1366,12 +1366,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 1/(1.1+Math.max(-1,get.value(card))); return 1/(1.1+Math.max(-1,get.value(card)));
}, },
ai2:function(target){ ai2:function(target){
const att=get.attitude(get.player(),target); return get.attitude(get.player(),target);
const value=ui.selected.cards.map(card=>get.value(card)).reduce((p,c)=>{
return p+c;
},0);
if(value>0||player.getHp()<=1) return att;
return -att;
}, },
precontent:function*(event,map){ precontent:function*(event,map){
var player=map.player,target=event.result.targets[0]; var player=map.player,target=event.result.targets[0];