KayelGee / token-attacher

MIT License
11 stars 18 forks source link

setElementsLockStatus fails to unlock the selected token #59

Closed paulohdsc closed 2 years ago

paulohdsc commented 2 years ago

Environment Details

Issue Description

I'm trying to use the (TA)Mount Up! macro and I noticed that the setElementsLockStatus function is not working as intended. The macro properly attachs the token to the targeted mount, but fails to set the selected token status as "unlocked: true".

I tried both await tokenAttacher.setElementsLockStatus(token, false, true); (the expected one) and await tokenAttacher.setElementsLockStatus(token, true, true); (just in case) with no success.

Best regards. Thanks for the module!

KayelGee commented 2 years ago

Maybe it's a misunderstanding because it works on my end. When you attach a token to another base token(via the mount up macro for example) then you won't be able to select the token via rectangle selection or by clicking on it(you can still double click it). When you do await tokenAttacher.setElementsLockStatus(token, false, true); then you can select it via rectangle selection or by clicking on it.