fix: handle undefined skills in computeTotalMaxMana to prevent production error
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m14s

This commit is contained in:
2026-05-06 12:06:33 +02:00
parent 496d3dde4c
commit 8b4a09a8c6
+2 -2
View File
@@ -190,8 +190,8 @@ export function computeTotalMaxMana(
const skillMult = effects?.skillLevelMultiplier || 1;
const base =
100 +
(state.skills.manaWell || 0) * 100 * skillMult +
(pu.manaWell || 0) * 500;
((state.skills || {}).manaWell || 0) * 100 * skillMult +
((pu || {}).manaWell || 0) * 500;
if (!effects) {
effects = getUnifiedEffects(state);