fix: handle undefined state/obj in mana calculations to prevent runtime error
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m20s

This commit is contained in:
2026-05-06 12:42:25 +02:00
parent 8b4a09a8c6
commit b7a91abc5d
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function computeMaxMana(
const base =
100 +
manaWellLevel.level * 100 * manaWellLevel.tierMultiplier +
(pu.manaWell || 0) * 500;
((pu || {}).manaWell || 0) * 500;
const computedEffects = effects ?? computeEffects(skillUpgrades, skillTiers);
// Apply MANA_HEART bonus (+10% per loop, compounds)