Skip to content

Commit

Permalink
Fix spell category filter
Browse files Browse the repository at this point in the history
  • Loading branch information
KitCat420 committed Mar 27, 2024
1 parent 1908aa1 commit f5fbea6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/argon/buttons/buttonPanelButton.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,16 @@ export function spellButtonPanelActionButton(ARGON) {
if (item.type !== "spell") continue;

if (!item.canCast) {
return false;
continue;
}

if (item.spellbook.spellPreparationMode === "prepared" && !item.useSpellPoints()) {
if (item.system.preparation.maxAmount === 0) {
return false;
continue;
}
} else {
if (!item.system.preparation.spontaneousPrepared) {
return false;
continue;
}
}

Expand Down

0 comments on commit f5fbea6

Please sign in to comment.