From babacdefdeab43bdce04f8540321211a1336a3e1 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Sun, 15 Oct 2023 15:07:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A0=87=E8=AE=B0=E6=9C=AA=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E6=A0=87=E8=AE=B0=E8=A7=86=E8=A7=92=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/identity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mode/identity.js b/mode/identity.js index 96e97ca4c..9ff1fee62 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -3061,7 +3061,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ 'step 2' game.broadcastAll('closeDialog',event.videoId); if(!_status.connectMode&&get.config('auto_mark_identity')&&!target.node.identity.firstChild.innerHTML.length){ - target.setIdentity(event.dongcha_result); + game.broadcastAll(function(player,target,event){ + if(player.isUnderControl(true)) target.setIdentity(event.dongcha_result); + },player,target,event); } }, neiDoCamouflage:function(){ From 5c1eea2a8d4adf973db1230626b4692843cd84e3 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:57:58 +0800 Subject: [PATCH 2/2] bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OL陆郁生【藏心】效果修正 手杀韩遂添加1护甲 --- character/mobile.js | 2 +- character/sp.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index f669e8399..6b681e928 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -93,7 +93,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ xin_guohuai:['male','wei',4,['mobilejingce']], gongsunkang:['male','qun',4,['juliao','taomie']], xin_zhangfei:['male','shu',4,['new_repaoxiao','liyong']], - xin_hansui:['male','qun',4,['xinniluan','xiaoxi_hansui']], + xin_hansui:['male','qun','4/4/1',['xinniluan','xiaoxi_hansui']], hucheer:['male','qun',4,['daoji']], re_lingtong:['male','wu',4,['rexuanfeng']], re_liubiao:['male','qun',3,['zishou','rezongshi']], diff --git a/character/sp.js b/character/sp.js index a8a672603..1fdc04115 100755 --- a/character/sp.js +++ b/character/sp.js @@ -1501,7 +1501,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ content:function(){ var cards=get.bottomCards(3,true); player.showCards(cards,get.translation(player)+'发动了【藏心】'); - trigger.num+=cards.filter(card=>get.suit(card,false)=='heart').length; + var num=cards.filter(card=>get.suit(card,false)=='heart').length; + if(num) player.draw(num); }, }, },