You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of simple to fix issues with the template application macro setup.
First, the documentation could probably use a mention that the on use macro should be of the "Before Active Effects" type.
Second, the macro in the compendium contains a <midi arguments here> placeholder that does not work, when it could simply have args there.
The applyTemplate function in AAhelpers.js also has two bugs:
First, let disposition = args[0].actor.token.disposition should be something like let disposition = args[0].actor.token?.data.disposition ?? 1 because the token field does not seem to be populated for actors with linked tokens and the disposition field is in data.
Second, the origin logic should be Actor.${args[0].actorData._id}.Item.${args[0].item._id} because the actor field points to an actor entity that has an id property, not _id.
The text was updated successfully, but these errors were encountered:
There are a couple of simple to fix issues with the template application macro setup.
First, the documentation could probably use a mention that the on use macro should be of the "Before Active Effects" type.
Second, the macro in the compendium contains a
<midi arguments here>
placeholder that does not work, when it could simply haveargs
there.The
applyTemplate
function inAAhelpers.js
also has two bugs:First,
let disposition = args[0].actor.token.disposition
should be something likelet disposition = args[0].actor.token?.data.disposition ?? 1
because the token field does not seem to be populated for actors with linked tokens and the disposition field is in data.Second, the origin logic should be
Actor.${args[0].actorData._id}.Item.${args[0].item._id}
because theactor
field points to an actor entity that has anid
property, not_id
.The text was updated successfully, but these errors were encountered: