Skip to content

Commit

Permalink
Merge pull request #677 from dmrickey/Fix-target-id-lookup
Browse files Browse the repository at this point in the history
Return token instead of token doc for target lookup
  • Loading branch information
otigon authored Aug 23, 2023
2 parents 929f2e7 + 897f323 commit bf31ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system-support/getRequiredData.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function getRequiredData(data) {

// set up targets
if (!data.targets && data.targetIds?.length) {
data.targets = data.targetIds.map((id) => canvas.scene.tokens.get(id));
data.targets = data.targetIds.map((id) => canvas.scene.tokens.get(id)?.object).filter(x => !!x);
}
if (!data.targets) {
data.targets = Array.from(game.user.targets)
Expand Down

0 comments on commit bf31ae6

Please sign in to comment.