Skip to content

Commit

Permalink
useHeroAction, Versions
Browse files Browse the repository at this point in the history
- Remove forceUpdateTokenActionHud when calling useHeroAction.
- Update verified versions and TAH Core minimum.
  • Loading branch information
Larkinabout committed Jul 16, 2023
1 parent ce889b9 commit df25bb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"version": "This is auto replaced",
"compatibility": {
"minimum": "10",
"verified": "11.304"
"verified": "11.305"
},
"esmodules": [
"./scripts/token-action-hud-pf2e.min.js"
Expand Down Expand Up @@ -95,7 +95,7 @@
"compatibility": [
{
"minimum": "4.6.4",
"verified": "5.0.2"
"verified": "5.1.2"
}
]
}
Expand All @@ -106,9 +106,9 @@
"type": "module",
"compatibility": [
{
"minimum": "1.4.8",
"minimum": "1.4.16",
"maximum": "1.4",
"verified": "1.4.10"
"verified": "1.4.16"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/roll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,11 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
async #useHeroAction (actor, actionId) {
if (actionId === 'drawHeroActions') {
await game.modules.get('pf2e-hero-actions')?.api?.drawHeroActions(actor)

Hooks.callAll('forceUpdateTokenActionHud')
} else {
await game.modules.get('pf2e-hero-actions')?.api?.useHeroAction(actor, actionId)
}

Hooks.callAll('forceUpdateTokenActionHud')
}

/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/token-action-hud-pf2e.min.js

Large diffs are not rendered by default.

0 comments on commit df25bb4

Please sign in to comment.