From 9edc60fd0608658551a7597579107a6ecce9aebd Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E5=AD=99=E5=9D=9A=E3=80=90=E6=AD=A6?= =?UTF-8?q?=E7=83=88=E3=80=91ai=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/refresh.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/character/refresh.js b/character/refresh.js index 6d9b88603..2f77615c9 100755 --- a/character/refresh.js +++ b/character/refresh.js @@ -8169,7 +8169,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, content:function(){ 'step 0' - player.chooseTarget([1,player.hp],get.prompt2('wulie'),lib.filter.notMe).set('ai',function(){return 0}); + player.chooseTarget([1,player.hp],get.prompt2('wulie'),lib.filter.notMe).set('ai',function(target){ + var player=_status.event.player; + if(player.hasUnknown()) return 0; + if(player.hp-ui.selected.targets.length>1+player.countCards('hs',card=>player.canSaveCard(card,player))) return get.attitude(player,target); + return 0; + }); 'step 1' if(result.bool){ var targets=result.targets.sortBySeat();