diff --git a/module/scripts/item-systems/item-system.js b/module/scripts/item-systems/item-system.js index aa7a57f..b64f9cf 100644 --- a/module/scripts/item-systems/item-system.js +++ b/module/scripts/item-systems/item-system.js @@ -230,7 +230,7 @@ export default class ItemSystem { }; for (let item of items) { let thisItemUses = await this.calculateUsesForItem(item); - if (thisItemUses === null) { + if (!thisItemUses) { uses = null; break; } diff --git a/module/scripts/item-systems/pf1.js b/module/scripts/item-systems/pf1.js index 47a7786..54d205f 100644 --- a/module/scripts/item-systems/pf1.js +++ b/module/scripts/item-systems/pf1.js @@ -72,6 +72,7 @@ async function calculateActionUses(item, action) { isAmmunition: true, }; } + return null } async function calculateChargeUses(item) {