This commit is contained in:
sladecraven 2022-07-07 13:33:31 +02:00
parent 05f044bc7c
commit 19bb0798c8

View File

@ -203,10 +203,10 @@ export class BoLActor extends Actor {
return Object.values(this.system.resources) return Object.values(this.system.resources)
} }
get boons() { get boons() {
return this.items.filter(i => i.type === "feature" && i.system.subtype === "boon"); return duplicate(this.items.filter(i => i.type === "feature" && i.system.subtype === "boon") || []);
} }
get flaws() { get flaws() {
return this.items.filter(i => i.type === "feature" && i.system.subtype === "flaw"); return duplicate(this.items.filter(i => i.type === "feature" && i.system.subtype === "flaw") || []);
} }
get careers() { get careers() {
return duplicate( this.items.filter(i => i.type === "feature" && i.system.subtype === "career") || []) return duplicate( this.items.filter(i => i.type === "feature" && i.system.subtype === "career") || [])
@ -288,10 +288,11 @@ export class BoLActor extends Actor {
} }
get bonusBoons() { get bonusBoons() {
return this.items.filter(i => i.type === "feature" && i.system.subtype === "boon" && i.system.properties.isbonusdice); let boons = this.items.filter(i => i.type === "feature" && i.system.subtype === "boon" && i.system.properties.isbonusdice)
return duplicate( boons || [])
} }
get malusFlaws() { get malusFlaws() {
return this.items.filter(i => i.type === "feature" && i.system.subtype === "flaw" && i.system.properties.ismalusdice); return duplicate( this.items.filter(i => i.type === "feature" && i.system.subtype === "flaw" && i.system.properties.ismalusdice) || []);
} }
isSorcerer() { isSorcerer() {