Added null protected to playerLevelFulfillsQuestRequirement()
(cherry picked from commit c90b8670f2
)
This commit is contained in:
parent
8895e2e82f
commit
3820b97531
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user