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 skillMult = effects?.skillLevelMultiplier || 1;
|
||||||
const base =
|
const base =
|
||||||
100 +
|
100 +
|
||||||
(state.skills.manaWell || 0) * 100 * skillMult +
|
((state.skills || {}).manaWell || 0) * 100 * skillMult +
|
||||||
(pu.manaWell || 0) * 500;
|
((pu || {}).manaWell || 0) * 500;
|
||||||
|
|
||||||
if (!effects) {
|
if (!effects) {
|
||||||
effects = getUnifiedEffects(state);
|
effects = getUnifiedEffects(state);
|
||||||
|
|||||||
Reference in New Issue
Block a user