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,