From 375193287ecf9fd552c175ac6a8dbde6418c9b0c Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Wed, 13 Dec 2023 01:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dstdshushen=E4=B8=8D=E9=80=89?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/standard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/character/standard.js b/character/standard.js index 795eedd98..63328a2be 100755 --- a/character/standard.js +++ b/character/standard.js @@ -102,9 +102,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ async content(event,trigger,player){ event.num=trigger.num||1; while(player.hasSkill('stdshushen')){ - const {result:{targets}}=await player.chooseTarget(get.prompt2('stdshushen'),lib.filter.notMe) + const {result:{bool,targets}}=await player.chooseTarget(get.prompt2('stdshushen'),lib.filter.notMe) .set('ai',target=>get.attitude(_status.event.player,target)); - const target=targets[0]; + if(!bool) break; + const target = targets[0]; player.logSkill('stdshushen',target); await target.draw(target.countCards('h')?1:2); if(--event.num<1) break;