Skip to content

Commit

Permalink
Re-add uses.max to isUsableItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkinabout committed Oct 4, 2024
1 parent f9ff62b commit f2375bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ Hooks.once("tokenActionHudCoreApiReady", async coreModule => {
* @returns {boolean} Whether the item is usable
*/
#isUsableItem(item) {
return this.showUnchargedItems || !!item.system.uses?.value;
return this.showUnchargedItems || !!item.system.uses?.value || !item.system.uses?.max;
}

/**
Expand Down

0 comments on commit f2375bc

Please sign in to comment.