From b59254a4974812979a59c152b7adbee212f9d225 Mon Sep 17 00:00:00 2001 From: copcap Date: Fri, 28 Jul 2023 11:34:44 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=B0=8F=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/mobile.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index edc9aa534..421648885 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -715,8 +715,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ contentx:function(){ 'step 0' var list=player.getStorage('mbdanggu'); - var first=list.randomRemove(1); - event.first=first[0]; + var first=list.randomRemove(1)[0]; + event.first=first; game.broadcastAll(function(changshi){ if(lib.config.background_speak) game.playAudio('skill',changshi+'_enter'); },first); @@ -748,7 +748,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } var next=player.chooseButton([ '党锢:请选择结党对象', - [first,'character'], + [[first],'character'], '
可选常侍
', [others,'character'] ],true); @@ -999,7 +999,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ forced:true, forceDie:true, content:function(){ - player.die(); + 'step 0' if(lib.skill.mbdanggu.isSingleShichangshi(player)){ if(!player.getStorage('mbdanggu').length){ game.broadcastAll(function(player){ @@ -1017,6 +1017,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ },player); } } + if(!player.getStorage('mbdanggu').length){ + game.delay(); + } + 'step 1' + player.die(); }, }, return:{