Fix macros
							parent
							
								
									1d9b5a35d5
								
							
						
					
					
						commit
						fa1fbe4877
					
				|  | @ -17,7 +17,7 @@ export async function createAcksMacro(data, slot) { | |||
|    | ||||
|     // Create the macro command
 | ||||
|     const command = `game.acks.rollItemMacro("${item.name}");`; | ||||
|     let macro = game.macros.entities.find(m => (m.name === item.name) && (m.command === command)); | ||||
|     let macro = game.macros.find(m => (m.name === item.name) && (m.command === command)); | ||||
|     if ( !macro ) { | ||||
|       macro = await Macro.create({ | ||||
|         name: item.name, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue