Skip to content

Commit

Permalink
[#4565] Fix deprecation warning with system macros
Browse files Browse the repository at this point in the history
Closes #4565
  • Loading branch information
arbron committed Nov 1, 2024
1 parent 8611732 commit d0b0739
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 @@ -89,7 +89,7 @@ function getMacroTarget(name, documentType) {
export function rollItem(itemName, { activityName }={}) {
let target = getMacroTarget(itemName, "Item");
if ( activityName ) target = target?.system.activities?.getName(activityName);
return target?.use();
return target?.use({ legacy: false });
}

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

0 comments on commit d0b0739

Please sign in to comment.