神鲁肃ai fix

This commit is contained in:
copcap 2024-01-26 21:13:50 +08:00
parent 99178836d4
commit f376394d65
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}).set('ai',target=>{
const player=get.player();
const pvalue=-player.getCards('h').map(card=>get.value(card,player)).reduce((p,c)=>p+c,0);
const tvalue=target.getCards('h').map(card=>get.value(card,player)).reduce((p,c)=>p+c,0);
const tvalue=-target.getCards('h').map(card=>get.value(card,target)).reduce((p,c)=>p+c,0)*get.sgnAttitude(player,target);
return (pvalue+tvalue)/2;
});
if(!bool) return;
@ -263,7 +263,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
game.loseAsync({
gain_list:list,
player:player,
animate:'gain2',
animate:'draw',
}).setContent('gaincardMultiple');
},
ai:{