We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The created hotbar macro does not pass through the event and the rollItem function it calls does not accept or forward an event.
function rollItem could be changed to
function rollItem(itemName, { event, activityName }={}) { let target = getMacroTarget(itemName, "Item"); if ( activityName ) target = target?.system.activities?.getName(activityName); return target?.use({ event, legacy: false }); }
and create5eMacro changed to have
foundry.utils.mergeObject(macroData, { name: itemData.name, img: itemData.img, command: `dnd5e.documents.macro.rollItem("${itemData._source.name}", { event })`, flags: {"dnd5e.itemMacro": true} }); break;
Which together mean that ctl/alt/shift will work as expected when clicking on the macro.
The text was updated successfully, but these errors were encountered:
1b47e54
Merge pull request #4994 from foundryvtt/activity-macro
3513243
[#4819, #4993] Add activity macros, pass event to item macros
arbron
Successfully merging a pull request may close this issue.
The created hotbar macro does not pass through the event and the rollItem function it calls does not accept or forward an event.
function rollItem could be changed to
and create5eMacro changed to have
Which together mean that ctl/alt/shift will work as expected when clicking on the macro.
The text was updated successfully, but these errors were encountered: