Compare commits

...

1 Commits

Author SHA1 Message Date
uberwald fe346f46bf fix: register _dice-breakdown.hbs partial, await ready hook promises
Release Creation / build (release) Successful in 56s
Mulligan reroll reaction message creation was failing silently because
the chat/dice-breakdown Handlebars partial was never registered via
loadTemplates. This caused an unhandled promise rejection that aborted
the entire reroll handler chain — no mulligan message, no combat result.
2026-07-04 09:22:38 +02:00
+7 -2
View File
@@ -108,11 +108,16 @@ function preLocalizeConfig() {
}
}
Hooks.once("ready", function () {
Hooks.once("ready", async function () {
console.info("LETHAL FANTASY | Ready")
// Initialiser la table des résultats D30
documents.D30Roll.initialize()
await documents.D30Roll.initialize()
// Register Handlebars partials used by chat templates
await foundry.applications.handlebars.loadTemplates([
"systems/fvtt-lethal-fantasy/templates/chat/_dice-breakdown.hbs"
])
// Saignement piloté par le combat tracker
_registerBleedingHooks()