From d84ad0d5f356c3bd7610cc80ac00a493a9ba80ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Mon, 18 Dec 2023 20:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E6=94=B9=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E6=98=AFHP=E4=B8=BA0=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-universal_function.js | 5 +++-- service-worker.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/script-universal_function.js b/script-universal_function.js index f2637103..06384223 100644 --- a/script-universal_function.js +++ b/script-universal_function.js @@ -1160,8 +1160,9 @@ function countTeamHp(team, leader1id, leader2id, solo, noAwoken = false) { tAssist.awoken = 0; } const ability = noAwoken ? tMember.abilityNoAwoken : tMember.ability; - const hp = ability ? ability[0] : 0; - if (!hp) return 0; + const hp = ability?.[0] ?? 0; + if (!hp) continue; + const mulHP = hp * memberHpMul(tMember, tAssist, ls2, memberArr, solo) //战友队长技 * memberHpMul(tMember, tAssist, ls1, memberArr, solo);//我方队长技 diff --git a/service-worker.js b/service-worker.js index b125e349..106fee2c 100644 --- a/service-worker.js +++ b/service-worker.js @@ -20563,7 +20563,7 @@ const cachesMap = new Map([ ], [ "script-universal_function.js", - "2b9a65a604cc3bd88d74ac8394e3efbf" + "83a9efda1972c4bfc104743760e2de97" ], [ "script.js",