From f0882833958cbb20ab12980317f2da571328e81b Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 1 Feb 2024 15:35:58 +0800 Subject: [PATCH] bugfix --- character/sp2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/character/sp2.js b/character/sp2.js index 7e505547d..e80891c33 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -282,7 +282,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ async content(event,trigger,player){ const target=event.target,info=get.info('starzongshi'); await player.give(event.cards,target); - const {result:{bool,cards}}= await target.chooseCard(info.position).set('ai',card=>info.check(card)) + const {result:{bool,cards}}= await target.chooseCard(info.position,(card,player)=>{ + return get.event('info').filterCard(card,player); + }).set('info',info).set('ai',card=>get.event('info').check(card)).set('selectCard',[1,2]).set('complexCard',true) .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); },