Fix Versteckte Würfe & Ungelernte Würfe auf EW
This commit is contained in:
parent
7c7ba3679b
commit
6a90581c4e
|
|
@ -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: "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue