Skip to content

Commit

Permalink
fix async issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Oct 28, 2024
1 parent 0be49cf commit c9528e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function rotateOnAttack(msg) {
turnTokenOnAttack(msg?.token?.object, msg?.target?.token?.object);
}

function checkRollNumbers(dat, msg) {
async function checkRollNumbers(dat, msg) {
const doChecks = getSetting("check-enabled");
const doCrits = getSetting("critical.enabled");
if (dat.isCheckRoll && (doChecks || doCrits)) {
Expand All @@ -238,7 +238,7 @@ function checkRollNumbers(dat, msg) {
}
}

function damageRollNumbers(dat, msg) {
async function damageRollNumbers(dat, msg) {
if (dat.isDamageRoll && getSetting("dmg-enabled") && getSetting("dmg-on-apply-or-roll") === "roll") {
const dmg_list = getDamageList(msg.rolls);
const targets = getTargetList(msg);
Expand Down

0 comments on commit c9528e1

Please sign in to comment.