mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-07-04 13:47:10 -04:00
[#36] Fix incorrect variable reference.
This commit is contained in:
parent
57f7c67272
commit
e8aa4a462e
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
export async function createWorldbuildingMacro(data, slot) {
|
||||
const command = `const roll = new Roll("${data.roll}", actor ? actor.getRollData() : {});
|
||||
roll.toMessage({speaker, flavor: "${data.label}"});`;
|
||||
let macro = game.macros.find(m => (m.name === item.label) && (m.command === command));
|
||||
let macro = game.macros.find(m => (m.name === data.label) && (m.command === command));
|
||||
if (!macro) {
|
||||
macro = await Macro.create({
|
||||
name: data.label,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue