From 985e5f8501adbe480a6583ec247a0fba8bbf41fd Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 1 Feb 2024 15:20:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=9F=E8=A2=81=E7=BB=8D=E4=B8=BB=E5=85=AC?= =?UTF-8?q?=E6=8A=80=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp2.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/character/sp2.js b/character/sp2.js index 89f158154..62ca507f5 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -278,15 +278,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ discard:false, lose:false, delay:false, + usable:1, async content(event,trigger,player){ const target=event.target,info=get.info('starzongshi'); await player.give(event.cards,target); - let {result:{bool}}= await target.chooseCard(info.position) - .set('prompt',get.prompt2('starzongshi')).set('ai',card=>info.check(card)); - if(bool){ - result.skill='starzongshi'; - player.useResult(result,event); - } + const {result:{bool,cards}}= await target.chooseCard(info.position).set('ai',card=>info.check(card)) + .set('prompt',get.prompt('starzongshi')).set('prompt2',lib.translate.starzongshi_info.slice(8).slice(0,-1)); + if(bool) target.useResult({skill:'starzongshi',cards:cards},event); }, ai:{ order:9,