Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- #131: Fix End Turn action.
  • Loading branch information
Larkinabout committed Nov 4, 2024
1 parent 24433c9 commit 0a1efac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Hooks.once("tokenActionHudCoreApiReady", async coreModule => {
// If token's turn, include endTurn
const combatType = {
initiative: "tokenActionHud.dnd5e.rollInitiative",
...(game.combat?.current?.tokenId !== this.token?.id && { endTurn: "tokenActionHud.endTurn" })
...(game.combat?.current?.tokenId === this.token?.id && { endTurn: "tokenActionHud.endTurn" })
};

const tokens = coreModule.api.Utils.getControlledTokens();
Expand Down

0 comments on commit 0a1efac

Please sign in to comment.