From 0a1efacaa58748e3705197d5d168f9c49bab66fe Mon Sep 17 00:00:00 2001 From: Russell Larkin Date: Mon, 4 Nov 2024 22:05:55 +0000 Subject: [PATCH] #131 - #131: Fix End Turn action. --- scripts/action-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/action-handler.js b/scripts/action-handler.js index 44ac168..9ed05a4 100644 --- a/scripts/action-handler.js +++ b/scripts/action-handler.js @@ -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();