Skip to content

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 24, 2024
1 parent c089e11 commit 858351d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 858351d

Please sign in to comment.