Skip to content

Commit

Permalink
fix: deep archimedea can be undefined in worldstate (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein authored Oct 16, 2024
1 parent fac01e4 commit 8a035e7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/WorldState.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,15 @@ export class WorldState {

this.kinepage = new Kinepage(tmp.pgr, deps.locale);

const { activation, expiry } = this.nightwave.activeChallenges.filter((c) => !c.isDaily)[0];
this.deepArchimedea = new DeepArchimedea(activation, expiry, tmp.lqo27);
if (tmp.lqo27) {
const { activation, expiry } = this.nightwave.activeChallenges.filter((c) => !c.isDaily)[0];

/**
* The current Deep Archimedea missions and modifiers
* @type {DeepArchimedea}
*/
this.deepArchimedea = new DeepArchimedea(activation, expiry, tmp.lqo27);
}
}
}

Expand Down

0 comments on commit 8a035e7

Please sign in to comment.