diff --git a/module/system/hooks.mjs b/module/system/hooks.mjs index 6eaf3a3..4b6f19d 100644 --- a/module/system/hooks.mjs +++ b/module/system/hooks.mjs @@ -69,7 +69,7 @@ export const registerHooks = function () { }); // changement de la pause - Hooks.on("renderGamePause", async function (element) { + Hooks.on("renderGamePause", async function (app, element) { const pauseEl = element ?? document.getElementById("pause"); if (!pauseEl || pauseEl.className !== "paused") return; pauseEl.querySelectorAll("img").forEach(img => { @@ -101,7 +101,7 @@ export const registerHooks = function () { title: game.i18n.localize("VERMINE.RollTool"), icon: 'fas fa-dice-d10', button: true, - onClick() { + onChange() { RollDialog.create().then(d => d.render(true)); } }; diff --git a/templates/combat-tracker.hbs b/templates/combat-tracker.hbs index 0074b66..873686c 100644 --- a/templates/combat-tracker.hbs +++ b/templates/combat-tracker.hbs @@ -23,7 +23,7 @@ {{/if}} @@ -33,12 +33,12 @@