p4535992 / foundryvtt-arms-reach

FoundryVTT Door little Utilities, Arms Reach for door
MIT License
2 stars 4 forks source link

[BUG] Another V10 data-model-issue #60

Closed kagedansa closed 1 year ago

kagedansa commented 1 year ago

Module Version: v2.2.5

The function in use with "useOwnedTokenIfNoTokenIsSelected" that identifies the character assigned to a player and its token currently does nothing.

This is due a change of the datamodel in V10 again (sorry is missed that until today)

In ArmsReachHelper.js change in Line 216

token = (canvas.tokens?.placeables.find((token) => token.document.id === game.user?.character?.id));

to

token = (canvas.tokens?.placeables.find((token) => token.document.actorId === game.user?.character?.id));

p4535992 commented 1 year ago

Ty for the hard work. Should be fixed with version 2.2.6

kagedansa commented 1 year ago

Works for me. Thank you!