diff --git a/src/public/user.ts b/src/public/user.ts index a5cb191..55fcd89 100644 --- a/src/public/user.ts +++ b/src/public/user.ts @@ -406,10 +406,10 @@ export class UserFun { if (conf?.cond?.[0] == 'time') { let val = conf.cond[1]; - if (val == -1 && gud.model[conf.id]) { + if (val == -1) { change = true; gud.model[conf.id] = {id: conf.id + '', time: -1}; - } else if (!gud.model[conf.id] || gud.model[conf.id].time < G.time) { + } else if (gud.model[conf.id].time < G.time) { change = true; gud.model[conf.id] = {id: conf.id + '', time: G.time + val * v}; } else {