Skip to content

Commit

Permalink
Possible fix
Browse files Browse the repository at this point in the history
- Creates cooldowns for items without one
  • Loading branch information
ChasarooniZ committed Aug 24, 2024
1 parent 29ce5ab commit 388548b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +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);
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 388548b

Please sign in to comment.