From 8a035e7a622b41442c13a44b3c8e129dd1a0bb89 Mon Sep 17 00:00:00 2001 From: Ornstein <6075693+SlayerOrnstein@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:52:36 -0400 Subject: [PATCH] fix: deep archimedea can be undefined in worldstate (#578) --- lib/WorldState.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/WorldState.js b/lib/WorldState.js index 785479141..4fb5966e0 100644 --- a/lib/WorldState.js +++ b/lib/WorldState.js @@ -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); + } } }