diff --git a/source/module/rolls/M5Roll.ts b/source/module/rolls/M5Roll.ts index 5e296a9..65f32b4 100644 --- a/source/module/rolls/M5Roll.ts +++ b/source/module/rolls/M5Roll.ts @@ -155,14 +155,14 @@ export class M5Roll { async toMessage(toggleAutomatedRoll = false) { let automatedRoll = (game as Game).settings.get("midgard5", "automatedRoll"); automatedRoll = toggleAutomatedRoll ? !automatedRoll : automatedRoll; - const rMode = (game as Game).settings.get("core", "rollMode"); + let rMode = (game as Game).settings.get("core", "rollMode"); if (!automatedRoll) { let checkOptions = await this.popUp({ isPW: this.data.rolls[0].label === (game as Game).i18n.localize("midgard5.pw") }); if (checkOptions["cancelled"]) { return; } else { - const rMode = checkOptions["rollMode"]; + rMode = checkOptions["rollMode"]; this.data.b = checkOptions; } } else { @@ -222,7 +222,7 @@ export class M5Roll { rollData.rolls["0"] = { formula: "1d20 + @i.fw + @i.bonus", enabled: true, - label: (game as Game).i18n.localize("midgard5.pw"), + label: (game as Game).i18n.localize("midgard5.ew"), result: "", total: 0, totalStr: "",