From e7985bb3af402b368e55ec6614be7b19e0ee1b0a Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Mon, 8 Apr 2024 09:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E6=9D=9C=E9=A2=84bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/guozhan.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index c07d82e77..b96c965a7 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -2157,13 +2157,13 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, forced:true, content(){ + const list=player.getStorage('fakezhufu_effect').filter(list=>!list[1]); + for(const i of list){ + player.storage.fakezhufu_effect[player.getStorage('fakezhufu_effect').indexOf(i)][1]=true; + } if(!Array.isArray(trigger.temporaryYingbian)) trigger.temporaryYingbian=[]; trigger.forceYingbian=true - trigger.temporaryYingbian.addArray(player.getStorage('fakezhufu_effect').filter(list=>{ - return !list[1]; - }).map(list=>{ - return get.info('fakezhufu').YingBianMap[list[0]]; - })); + trigger.temporaryYingbian.addArray(list.map(i=>get.info('fakezhufu').YingBianMap[i[0]])); }, }, },