From 0c7587971c3d58d27a356a92317bc19347150cd4 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 4 Feb 2024 01:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A5=9E=E5=85=B8=E9=9F=A6?= =?UTF-8?q?=E3=80=90=E6=8C=88=E6=8C=9F=E3=80=91=E5=88=9B=E9=80=A0=E7=9A=84?= =?UTF-8?q?=E6=AD=A6=E5=99=A8=E7=89=8C=E5=AF=B9=E5=BA=94=E7=9A=84=E6=AD=A6?= =?UTF-8?q?=E5=B0=86=E7=89=8C=E4=B8=8D=E7=A7=BB=E9=99=A4=E6=AD=A6=E5=B0=86?= =?UTF-8?q?=E7=89=8C=E5=A0=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/extra.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/character/extra.js b/character/extra.js index ee9ae8ea7..242869e97 100755 --- a/character/extra.js +++ b/character/extra.js @@ -982,10 +982,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 1' if(result.bool){ var list=result.links; - game.addVideo('skill',player,['qiexie',[list]]) - game.broadcastAll(function(list){ + game.addVideo('skill',player,['qiexie',[list]]); + _status.characterlist.removeArray(list); + game.broadcastAll(function(player,list){ + player.tempname.addArray(list); for(var name of list) lib.skill.qiexie.createCard(name); - },list); + },player,list); var cards=list.map(function(name){ var card=game.createCard('qiexie_'+name,'none',get.infoMaxHp(lib.character[name][2])); return card; @@ -1138,6 +1140,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ card._destroy=true; game.log(card,'被放回武将牌堆'); var name=card.name.slice(7); + if(player.tempname&&player.tempname.includes(name)){ + game.broadcastAll((player,name)=>{ + player.tempname.remove(name); + },player,name); + } if(lib.character[name]) _status.characterlist.add(name); } }