From 3b36f5b2c26e94c660255bc45cadc0eebd1ec23f Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Tue, 12 Mar 2024 12:46:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=98=E7=B9=87=E3=80=90=E9=80=86=E6=8B=92?= =?UTF-8?q?=E3=80=91=E5=8F=AF=E8=83=BD=E7=9A=84bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/tw.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/character/tw.js b/character/tw.js index c85198830..8ccad7921 100644 --- a/character/tw.js +++ b/character/tw.js @@ -2070,7 +2070,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ const {links}=result; if(typeof links[0]!=='string') links.reverse(); let [fn,card]=links; - const selectedPlayer=lose_list[cards.indexOf(card)][0]; + const selectedPlayer=lose_list.find(item=>{ + if(Array.isArray(item[1])) return item[1].includes(card); + return item[1]==card; + })[0]; player.logSkill('twniju',selectedPlayer); selectedPlayer.addTempSkill('twniju_change'); if(!selectedPlayer.storage.twniju_change) selectedPlayer.storage.twniju_change=[];