diff --git a/scripts/module.js b/scripts/module.js index b317147..60fd931 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -61,7 +61,7 @@ export async function updateFrequency(character, total, diff, situation = "defau } export function isItemRelevant(item, total, diff, situation) { - if (!item?.getFlag(MODULE_ID, "cooldown")) updateItem(item, item, _diff, _userID); + if (!item?.getFlag(MODULE_ID, "cooldown")) updateItem(item, item, diff, null); const { cooldown } = item?.getFlag(MODULE_ID, "cooldown") || {}; const isSpecialCase = checkAndHandleSpecialCase(item, total, diff, situation); if (!cooldown && !isSpecialCase) return false;