From 88e7edeb772bceeed92484427df7f4c4fa83f2c4 Mon Sep 17 00:00:00 2001 From: PZ157 <3619242020@qq.com> Date: Thu, 2 Nov 2023 21:39:58 +0800 Subject: [PATCH] bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复ai没有队友依旧囤桃的bug --- card/standard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/card/standard.js b/card/standard.js index a361c4a6f..f83ddd6ca 100644 --- a/card/standard.js +++ b/card/standard.js @@ -455,7 +455,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ let min = 7.2-1.2*Math.min(3,player.hp), nd = player.needsToDiscard(-player.countCards('h',i=>!taos.includes(i)&&get.value(i)1&&(nd>1||nd&&player.hp<1+taos.length) || target.identity==='zhu'&&target.hp<3&&(mode==='identity'||mode==='versus'||mode==='chess')) return 2; + if(!player.hasFriend() || taos.length>1&&(nd>1||nd&&player.hp<1+taos.length) || target.identity==='zhu'&&target.hp<3&&(mode==='identity'||mode==='versus'||mode==='chess')) return 2; if(nd<3&&game.hasPlayer(current=>{ return player!==current&¤t.identity==='zhu'&¤t.hp<3&&(mode==='identity'||mode==='versus'||mode==='chess')&&get.attitude(player,current)>0; })){ @@ -477,6 +477,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ if(keep>2) return 0; } } + return 2; } if(target.isZhu2() || target===game.boss) return 2; if(player!==target){