Skip to content

Commit

Permalink
Chris premades checking folders for incorrect items
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Apr 14, 2024
1 parent 7db92ee commit 2d1875c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effects/external/ChrisPremadesHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ export default class ChrisPremadesHelper {
return undefined;
}

const allowFolders = ["weapon", "feat"].includes(this.original.type);
const allowFolders = ["weapon", "feat"].includes(this.original.type) && this.isMonster;

for (const c of compendiums) {
const folderId = allowFolders && this.isMonster
const folderId = allowFolders
? await FolderHelper.getCompendiumFolderId((this.folderName ?? this.chrisName), c.packName)
: undefined;

Expand Down

0 comments on commit 2d1875c

Please sign in to comment.