From deba12d2678039f438151fa88e3c4c8f49febf9b Mon Sep 17 00:00:00 2001 From: nuclear357 Date: Mon, 12 Aug 2024 10:59:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=9A=E5=B8=B8=E6=B5=B7=E5=9F=9F?= =?UTF-8?q?=E5=A4=9A=E6=AE=B5MapHp=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=20(#2565)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/utils/selectors.es | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/utils/selectors.es b/views/utils/selectors.es index eab2f0c7d..c3183e193 100644 --- a/views/utils/selectors.es +++ b/views/utils/selectors.es @@ -62,9 +62,9 @@ function getMapHp(map, $map) { const { api_now_maphp, api_max_maphp, api_gauge_type } = map.api_eventmap return [api_now_maphp, api_max_maphp, api_gauge_type] } - const maxCount = $map.api_required_defeat_count + const maxCount = map.api_required_defeat_count if (!maxCount) return - const nowCount = map.api_defeat_count || maxCount + const nowCount = map.api_defeat_count ?? maxCount const nowHp = maxCount - nowCount return [nowHp, maxCount, undefined] }