We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16381c6 + 6ec28c7 commit 58414a7Copy full SHA for 58414a7
src/module/item/entity.js
@@ -33,8 +33,10 @@ export default class OseItem extends Item {
33
}
34
if (source?.system?.itemslots === undefined) {
35
if (
36
- source?.system?.tags.some((tag) => tag.value === "Two-handed") &&
37
- source.type === "weapon"
+ (source?.system?.tags ?? []).some(
+ (tag) => tag.value === "Two-handed"
38
+ ) &&
39
+ source?.type === "weapon"
40
)
41
source.system.itemslots = 2;
42
if (source?.system?.type === "heavy" && source.type === "armor")
0 commit comments