Skip to content

Commit

Permalink
Update game-data.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz authored Aug 12, 2023
1 parent 8bafe6a commit 7030733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/game-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ export async function updateBosses() {
gameData.bosses = response.bosses.map(boss => {
return {
...boss,
health: boss.health.reduce((total, healthPart) => {
health: boss.health ? boss.health.reduce((total, healthPart) => {
total += healthPart.max;
return total;
},0),
},0) : 0,
}
});

Expand Down

0 comments on commit 7030733

Please sign in to comment.