generated from nhcarrigan/template
bug: quests with Combat Power requirements do not auto-start #157
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report
When Auto: ON is enabled for quests, quests without special requirements auto-start correctly. However, quests that have a Combat Power requirement do not auto-start, even when the player has sufficient Combat Power to meet the requirement.
Steps to Reproduce
Expected Behaviour
Quests with a Combat Power requirement should auto-start when Auto is ON and the player meets the requirement.
Actual Behaviour
Quests with a Combat Power requirement are skipped by the auto-start logic entirely.
Root Cause
The auto-quest CP calculation used a broken
reduceformula that multiplied the running total bya.countinstead of addinga.combatPower * a.count. Any adventurer withcount: 0zeroed out the entire running total, causingpartyCombatPowerto always be ~0. Since all unused adventurers havecount: 0, this made every CP-gated quest fail the(q.combatPowerRequired ?? 0) <= partyCombatPowerfilter.Resolution
Fixed in commit
4c297f1— replaced the broken reduce withcomputePartyCombatPower(next), which correctly applies all multipliers (adventurer-specific upgrades, global upgrades, prestige, equipment, set bonuses, echo, crafted, and companion multipliers).✨ This issue was created with help from Hikari~ 🌸