Skip to content

Commit

Permalink
feat(macro.mjs): call the method use() for usages of item
Browse files Browse the repository at this point in the history
  • Loading branch information
SouOWendel committed Nov 14, 2023
1 parent 614016b commit 8902603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/documents/macro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function getMacroTarget(name, documentType) {
* @returns {Promise<ChatMessage|object>} Roll result.
*/
export function rollItem(itemName) {
return getMacroTarget(itemName, 'Item');
return getMacroTarget(itemName, 'Item').use();
}

/* -------------------------------------------- */
Expand Down

0 comments on commit 8902603

Please sign in to comment.