mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-07-05 14:10:42 -04:00
Update for v9 compatibility.
This commit is contained in:
parent
fb0add4cbc
commit
e966775723
4 changed files with 22 additions and 20 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.entities.find(m => (m.name === item.label) && (m.command === command));
|
||||
let macro = game.macros.find(m => (m.name === item.label) && (m.command === command));
|
||||
if (!macro) {
|
||||
macro = await Macro.create({
|
||||
name: data.label,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue