From b02c36a4dcbabf5e122a0765e9fd58290fc375a7 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Fri, 5 Apr 2024 15:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=BE=E5=85=85=E3=80=81=E5=B7=A6=E6=85=88bu?= =?UTF-8?q?gfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/guozhan.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index e02bd7600..d3a558201 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -1201,13 +1201,13 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }; return game.countPlayer()-getNum(button.link); }); - event.result={bool:bool,cards:links}; + event.result={bool:bool,cost_data:links}; }, async content(event,trigger,player){ - player.unmarkAuto('fakeyigui',event.cards); - _status.characterlist.addArray(event.cards); - game.log(player,'移除了'+get.cnNumber(event.cards.length)+'张','#g“魂”'); - get.info('fakeyigui').gainHun(player,event.cards.length); + player.unmarkAuto('fakeyigui',event.cost_data); + _status.characterlist.addArray(event.cost_data); + game.log(player,'移除了'+get.cnNumber(event.cost_data.length)+'张','#g“魂”'); + get.info('fakeyigui').gainHun(player,event.cost_data.length); }, }, }, @@ -2717,9 +2717,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ return event.source.isFriendOf(event.player)&&[event.source,event.player].some(target=>target.countCards('he')); }, async cost(event,trigger,player){ - event.result=await player.chooseTarget(get.prompt('fakejianhui'),(card,player,target)=>{ + event.result=await player.chooseTarget(get.prompt2('fakejianhui'),(card,player,target)=>{ const trigger=get.event().getTrigger(); - if(!(trigger.source==target&&trigger.player==target)) return false; + if(!(trigger.source==target||trigger.player==target)) return false; if(!ui.selected.targets.length) return true; return target.countCards('he'); },2).set('targetprompt',['摸牌','拆牌']).set('ai',target=>{