Skip to content

Commit

Permalink
Update Combat.js
Browse files Browse the repository at this point in the history
Fix #17.
  • Loading branch information
mclemente committed Jun 10, 2024
1 parent fd040d0 commit 7cd378e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class FurnaceCombatQoL {
const combatTracker = html.find("#combat-tracker");
if (!combatTracker[0].children.length) return;
getInitiatives(combatTracker);
let TokenInitiative = html.find(".token-initiative");
const TokenInitiative = html.find(".token-initiative");
TokenInitiative.find(".initiative").on("dblclick", FurnaceCombatQoL._onInitiativeDblClick);
TokenInitiative.find(".combatant-control.roll").on("contextmenu", (event) => {
const cid = event.target.closest(".combatant").dataset.combatantId;
game.combat.setInitiative(cid, 0);
});

if (orderButtons || revertButton) {
TokenInitiative.before("<div class='double-click-initiative flexrow'></div>");
Expand Down

0 comments on commit 7cd378e

Please sign in to comment.