Added null protection inside lightkeeperQuestWorkaround() related to daily quests

This commit is contained in:
Dev 2024-10-25 19:19:49 +01:00
parent 731d9f3f0b
commit 38f20e76ea

View File

@ -715,7 +715,7 @@ export class LocationLifecycleService {
(preRaidQuest) => (preRaidQuest) =>
preRaidQuest.qid === postRaidQuest.qid && preRaidQuest.status !== QuestStatus.Success, preRaidQuest.qid === postRaidQuest.qid && preRaidQuest.status !== QuestStatus.Success,
) && ) &&
this.databaseService.getQuests()[postRaidQuest.qid].traderId === Traders.LIGHTHOUSEKEEPER, this.databaseService.getQuests()[postRaidQuest.qid]?.traderId === Traders.LIGHTHOUSEKEEPER,
); );
// Run server complete quest process to ensure player gets rewards // Run server complete quest process to ensure player gets rewards