fix: handle undefined skills in computeTotalMaxMana to prevent production error
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m14s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m14s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user