From 084f5207666ba07f58d2d93ed6ba30154b37f48a Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 14 Apr 2024 00:39:59 +0800 Subject: [PATCH] =?UTF-8?q?OL=E6=B7=B3=E4=BA=8E=E7=90=BC=E3=80=90=E5=AE=BF?= =?UTF-8?q?=E5=AE=88=E3=80=91=E3=80=81=E5=8D=81=E5=91=A8=E5=B9=B4=E6=B7=B3?= =?UTF-8?q?=E4=BA=8E=E7=90=BC=E3=80=90=E7=B2=AE=E8=90=A5=E3=80=91=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=5Fstatus.noclearcountdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/huicui.js | 7 +++++++ character/sp2.js | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/character/huicui.js b/character/huicui.js index 5d7867579..03ecf5523 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -12029,6 +12029,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ const num=draws.indexOf(control)+1,max=Math.min(num,player.countCards('he'),game.countPlayer(target=>target!=player)); await player.draw(num); let list=[]; + if(_status.connectMode) game.broadcastAll(()=>_status.noclearcountdown=true); while(max-list.length>0){ const {result:{bool,cards,targets}}=await player.chooseCardTarget({ prompt:'粮营:将'+get.cnNumber(max-1)+'至'+get.cnNumber(max)+'张牌交给其他角色', @@ -12054,6 +12055,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else break; } + if(_status.connectMode){ + game.broadcastAll(()=>{ + delete _status.noclearcountdown; + game.stopCountChoose(); + }); + } if(list.length){ await game.loseAsync({ gain_list:list, diff --git a/character/sp2.js b/character/sp2.js index 81edb89e9..facc0b211 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -8319,6 +8319,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ const num=Math.min(player.countCards('h'),player.countCards('he'),game.countPlayer(target=>target!=player&&target.isFriendOf(player))); if(num){ let list=[]; + if(_status.connectMode) game.broadcastAll(()=>_status.noclearcountdown=true); while(num-list.length>0){ const {result:{bool,targets,cards}}=await player.chooseCardTarget({ prompt:'宿守:你可以交给友方角色各一张牌', @@ -8344,6 +8345,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } else break; } + if(_status.connectMode){ + game.broadcastAll(()=>{ + delete _status.noclearcountdown; + game.stopCountChoose(); + }); + } if(list.length){ await game.loseAsync({ gain_list:list,