UPdate and fixes for roll in combats
Release Creation / build (release) Successful in 43s

This commit is contained in:
2026-05-18 20:26:39 +02:00
parent 7279cd752d
commit 96306623e5
47 changed files with 329 additions and 177 deletions
+4 -1
View File
@@ -142,11 +142,14 @@ export async function rollFreeDie(dieType, count = 1, explode = false) {
`
const rollMode = game.settings.get("core", "rollMode")
// Normalize old-style rollMode keys (v12/v13) to new-style (v14), fallback to "public"
const modeMap = { publicroll: "public", gmroll: "gm", blindroll: "blind", selfroll: "self" }
const mode = modeMap[rollMode] ?? rollMode ?? "public"
const msgData = {
speaker: ChatMessage.getSpeaker(),
content,
sound: CONFIG.sounds.dice,
mode,
}
ChatMessage.applyMode(msgData, rollMode)
await ChatMessage.create(msgData)
}