fix: correct combat power calculation in quest panel
CI / Lint, Build & Test (push) Failing after 49s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 2m18s

This commit is contained in:
2026-03-08 16:02:49 -07:00
committed by Naomi Carrigan
parent 205b4136ce
commit 290c06de83
+1 -2
View File
@@ -192,8 +192,7 @@ const QuestPanel = (): JSX.Element => {
const { adventurers, autoQuest, quests, zones } = state;
// eslint-disable-next-line unicorn/no-array-reduce -- Need the total!
const partyCombatPower = adventurers.reduce((total, adventurer) => {
const power = total + adventurer.combatPower;
return power * adventurer.count;
return total + adventurer.combatPower * adventurer.count;
}, 0);
const zoneQuests = quests.filter(({ zoneId }) => {
return zoneId === activeZoneId;