diff --git a/module/item/item-sheet.js b/module/item/item-sheet.js index 258977e..87b7dd2 100644 --- a/module/item/item-sheet.js +++ b/module/item/item-sheet.js @@ -40,6 +40,12 @@ export class BoLItemSheet extends ItemSheet { } } if (itemData.data.category == 'spell') { + if(!itemData.data.properties.mandatoryconditions) { + itemData.data.properties.mandatoryconditions = [] + } + if(!itemData.data.properties.optionnalconditions) { + itemData.data.properties.optionnalconditions = [] + } for (let i = 0; i < 4; i++) { itemData.data.properties.mandatoryconditions[i] = itemData.data.properties.mandatoryconditions[i] ?? "" } diff --git a/system.json b/system.json index 3c80388..ca50f45 100644 --- a/system.json +++ b/system.json @@ -7,7 +7,7 @@ "url": "https://github.com/ZigmundKreud/bol", "license": "LICENSE.txt", "flags": {}, - "version": "0.9.1.4", + "version": "0.9.1.5", "templateVersion": 18, "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "9",