Fix Versteckte Würfe & Ungelernte Würfe auf EW

This commit is contained in:
Byroks 2024-09-21 10:17:53 +02:00
parent 7c7ba3679b
commit 6a90581c4e
1 changed files with 3 additions and 3 deletions

View File

@ -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: "",