From 719963a949d049c4fb876ecf7025a62b3247dab0 Mon Sep 17 00:00:00 2001 From: PZ157 <3619242020@qq.com> Date: Wed, 6 Dec 2023 23:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9D=80=E3=80=91ai=20bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/standard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/card/standard.js b/card/standard.js index 8f8a23785..af19cea3e 100644 --- a/card/standard.js +++ b/card/standard.js @@ -307,14 +307,17 @@ game.import('card',function(lib,game,ui,get,ai,_status){ if(isLink){ let rate=_status.event.getTempCache('sha_result','mayShan'); if(rate){ - if(JSON.stringify(card)===JSON.stringify(rate.card)) rate=rate.rate; - else delete _status.event._tempCache['sha_result']['mayShan']; + if(card.cardid||rate.card.cardid){ + if(card.cardid==rate.card.cardid) rate=rate.rate; + } + else if(JSON.stringify(card)===JSON.stringify(rate.card)) rate=rate.rate; } delete target._sha_result_temp; if(typeof rate==='boolean'||typeof rate==='number'){ if(rate>=1) return eff; return basic*eff*(1.3-0.9*rate); } + else delete _status.event._tempCache['sha_result']['mayShan']; return basic*eff; } let mayShan;