This commit is contained in:
Johannes Loher 2021-07-08 08:00:58 +02:00
parent 26233d61ea
commit 05933af152
10 changed files with 22 additions and 15 deletions

View file

@ -20,7 +20,7 @@ export async function createRollCheckMacro(check: Check, slot: string): Promise<
}
async function getOrCreateRollCheckMacro(check: Check): Promise<Macro | undefined> {
const command = `getGame().ds4.macros.rollCheck("${check}");`;
const command = `game.ds4.macros.rollCheck("${check}");`;
const existingMacro = getGame().macros?.find(
(m) => m.name === DS4.i18n.checks[check] && m.data.command === command,