Only set start time in resetQuestState()
when new status is started
This commit is contained in:
parent
9ed5869fa6
commit
b52ea4f1fa
@ -748,7 +748,13 @@ export class QuestHelper
|
||||
const currentTimestamp = this.timeUtil.getTimestamp();
|
||||
|
||||
questToUpdate.status = newQuestState;
|
||||
questToUpdate.startTime = currentTimestamp;
|
||||
|
||||
// Only set start time when quest is being started
|
||||
if (newQuestState === QuestStatus.Started)
|
||||
{
|
||||
questToUpdate.startTime = currentTimestamp;
|
||||
}
|
||||
|
||||
questToUpdate.statusTimers[newQuestState] = currentTimestamp;
|
||||
|
||||
// Delete all status timers after applying new status
|
||||
|
Loading…
Reference in New Issue
Block a user