Skip to content

Commit

Permalink
ignore inactive traits
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien committed Oct 28, 2024
1 parent 78a4bb9 commit 04aa902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v3.0.1
* Inactive Traits are now no longer added to Combat Actions

## v3.0.0
* Updated code for compatibility with TAH Core 2.0
* Moved styling to separate Style called `WFRP4e Dark Red`
Expand Down
1 change: 1 addition & 0 deletions dist/modules/ActionHandler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
for (let [key, item] of this.talents) {
if (item.type !== 'trait') continue;
if (!item.rollable?.value) continue;
if (!item.system.enabled) continue;

let action = this.#makeActionFromItem(item, actionTypeName, actionType);
actionsData.push(action);
Expand Down

0 comments on commit 04aa902

Please sign in to comment.