diff --git a/src/shared/public/user.ts b/src/shared/public/user.ts index 87e7ba8..5310bab 100644 --- a/src/shared/public/user.ts +++ b/src/shared/public/user.ts @@ -37,7 +37,7 @@ export class UserShared { // else if (conf.cond[0] == 'time') return collection.active[fmtId] == -1 || collection.active[fmtId] > G.time; else if (conf.cond[0] == 'time') return conf.cond[1] == -1 || collection.active?.[fmtId] > G.time; else if (conf.cond[0] == 'model') return Object.values(collection.model).find(i => i.id == conf.cond[1]); - else if (conf.cond[0] == 'heroskin') return collection.heroskin[conf.cond[1]]; + else if (conf.cond[0] == 'heroskin') return conf.cond[1] in collection.heroskin; else return false; } } \ No newline at end of file