diff --git a/src/module/item/melee/document.ts b/src/module/item/melee/document.ts index d05ec4df8ff..159c481b7c8 100644 --- a/src/module/item/melee/document.ts +++ b/src/module/item/melee/document.ts @@ -31,11 +31,12 @@ class MeleePF2e extends Ite } get isRanged(): boolean { - return this.system.traits.value.some((t) => t.startsWith("range-")); + const traitPattern = /^(?:range|thrown)-/; + return this.system.traits.value.some((t) => traitPattern.test(t)); } get isThrown(): boolean { - return this.isRanged && this.system.traits.value.some((t) => t.startsWith("thrown")); + return this.isRanged && this.system.traits.value.some((t) => t.startsWith("thrown-")); } /** The attribute this attack is based on: determines which of the Clumsy and Enfeebled conditions apply */