Skip to content

Commit

Permalink
fix: 通常海域多段MapHp显示不正确 (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclear357 authored Aug 12, 2024
1 parent fe01e5e commit deba12d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/utils/selectors.es
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit deba12d

Please sign in to comment.