Skip to content

Commit 567ba5a

Browse files
committed
Add support for handling multiple classes in heroic skills (and besides)
1 parent 657d73b commit 567ba5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

module/ui/compendium/compendium-filter.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export class CompendiumFilter {
5252
const paths = Array.isArray(category.propertyPath) ? category.propertyPath : [category.propertyPath];
5353
const matchesAnyPath = paths.some((path) => {
5454
const value = foundry.utils.getProperty(entry, path);
55-
return value && category.selected.has(value);
55+
if (!value) return false;
56+
57+
const values = value.includes(',') ? value.split(',').map((v) => v.trim()) : [value];
58+
return values.some((v) => category.selected.has(v));
5659
});
5760
if (!matchesAnyPath) {
5861
return false;

0 commit comments

Comments
 (0)