From 80d58403ab4957b94cce1d04cecbf0e03b7251cd Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 12 Feb 2022 21:09:28 +0100 Subject: [PATCH] Fix spells --- module/item/item-sheet.js | 6 ++++++ system.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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",