Fix spells

This commit is contained in:
sladecraven 2022-02-12 21:09:28 +01:00
parent 59218de935
commit 80d58403ab
2 changed files with 7 additions and 1 deletions

View File

@ -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] ?? ""
}

View File

@ -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",