This commit is contained in:
mengxinzxz 2024-02-01 15:35:58 +08:00
parent f153d16697
commit f088283395
1 changed files with 3 additions and 1 deletions

View File

@ -282,7 +282,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
async content(event,trigger,player){ async content(event,trigger,player){
const target=event.target,info=get.info('starzongshi'); const target=event.target,info=get.info('starzongshi');
await player.give(event.cards,target); 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)); .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); if(bool) target.useResult({skill:'starzongshi',cards:cards},event);
}, },