From c6921566919f3199b6ef7ea0218cd7cee0766b41 Mon Sep 17 00:00:00 2001 From: PZ157 <3619242020@qq.com> Date: Wed, 6 Dec 2023 15:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A5=E9=98=B2=E4=B8=87=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/standard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/card/standard.js b/card/standard.js index 1d9aa1530..8f8a23785 100644 --- a/card/standard.js +++ b/card/standard.js @@ -306,7 +306,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){ if(zhu) eff*=Math.max(1,9/target.hp/target.hp); if(isLink){ let rate=_status.event.getTempCache('sha_result','mayShan'); - if(rate&&JSON.stringify(card)===JSON.stringify(rate.card)) rate=rate.rate; + if(rate){ + if(JSON.stringify(card)===JSON.stringify(rate.card)) rate=rate.rate; + else delete _status.event._tempCache['sha_result']['mayShan']; + } delete target._sha_result_temp; if(typeof rate==='boolean'||typeof rate==='number'){ if(rate>=1) return eff;