Added null protected to playerLevelFulfillsQuestRequirement()

(cherry picked from commit c90b8670f2)
This commit is contained in:
Dev 2024-07-23 09:07:07 +01:00
parent 8895e2e82f
commit 3820b97531

View File

@ -215,6 +215,12 @@ export class QuestController
*/
protected playerLevelFulfillsQuestRequirement(quest: IQuest, playerLevel: number): boolean
{
if (!quest.conditions)
{
// No conditions
return true;
}
const levelConditions = this.questConditionHelper.getLevelConditions(quest.conditions.AvailableForStart);
if (levelConditions.length)
{