From fe95188cd27c07991abf5fd056e3a77a575dcfcf Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=B7=E8=AE=B8=E5=8A=AD=E3=80=90=E7=9B=88?= =?UTF-8?q?=E9=97=A8=E3=80=91=E8=8E=B7=E5=BE=97=E8=AE=BF=E5=AE=A2=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复起许劭【盈门】仅在自己视角下才播放获得“访客”牌特效的bug --- character/jsrg.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/character/jsrg.js b/character/jsrg.js index 03b69f47a..6f54d0c25 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -1880,8 +1880,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, addVisitors:function(characters,player){ player.addSkillBlocker('sbyingmen'); - game.log(player,'将','#y'+get.translation(characters),'加入了','#g“访客”') - lib.skill.rehuashen.drawCharacter(player,characters); + game.log(player,'将','#y'+get.translation(characters),'加入了','#g“访客”'); + game.broadcastAll(function(player,characters){ + player.$draw(characters.map(function(name){ + var cardname='huashen_card_'+name; + lib.card[cardname]={ + fullimage:true, + image:'character:'+name + }; + lib.translate[cardname]=get.rawName2(name); + return game.createCard(cardname,' ',' '); + }),'nobroadcast'); + },player,characters); player.markAuto('sbyingmen',characters) var storage=player.getStorage('sbyingmen'); var skills=lib.skill.sbyingmen.getSkills(storage,player);