From 7920bc7fd89242bf17b3660633d32baa09de6d60 Mon Sep 17 00:00:00 2001 From: copcap Date: Wed, 7 Feb 2024 14:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=AD=E5=BE=AA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/jsrg.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/character/jsrg.js b/character/jsrg.js index 753c2b1e4..898a66ee5 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -1045,6 +1045,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return `令${get.translation(event.card)}不计入次数限制,且你获得${get.translation(event.target)}一张牌,然后其可以令你本回合至其的距离+2`; }, group:'jsrgeqian_prepare', + logTarget:'target', async content(event,trigger,player){ if(trigger.addCount!==false){ trigger.addCount=false; @@ -1071,14 +1072,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, direct:true, async content(event,trigger,player){ - while(true){ + while(player.countCards('h')>0){ const {result:{bool,cards}}=await player.chooseCard(get.prompt('jsrgeqian'),'你可以蓄谋任意次').set('ai',card=>{ const player=get.player(); if(player.hasValueTarget(card)) return player.getUseValue(card); return 0; }); if(!bool) break; - player.addJudge({name:'xumou_jsrg'},cards); + await player.addJudge({name:'xumou_jsrg'},cards); } }, },