Fixed so that we are not looking at the now non-existing metadata.isQuantifiable anymore

This commit is contained in:
WBHarry 2026-05-24 00:26:57 +02:00
parent e4a3f105dc
commit b1cd27f0b3
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ export default class CostField extends fields.ArrayField {
static calcCosts(costs) {
const resources = CostField.getResources.call(this, costs);
let filteredCosts = costs;
if (this.parent?.metadata.isQuantifiable && this.parent.consumeOnUse === false) {
if (this.parent?.isInventoryItem && this.parent.consumeOnUse === false) {
filteredCosts = filteredCosts.filter(c => c.key !== 'quantity');
}