fix: register _dice-breakdown.hbs partial, await ready hook promises
Release Creation / build (release) Successful in 56s
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.
This commit is contained in:
+7
-2
@@ -108,11 +108,16 @@ function preLocalizeConfig() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Hooks.once("ready", function () {
|
Hooks.once("ready", async function () {
|
||||||
console.info("LETHAL FANTASY | Ready")
|
console.info("LETHAL FANTASY | Ready")
|
||||||
|
|
||||||
// Initialiser la table des résultats D30
|
// 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
|
// Saignement piloté par le combat tracker
|
||||||
_registerBleedingHooks()
|
_registerBleedingHooks()
|
||||||
|
|||||||
Reference in New Issue
Block a user