p4535992 / conditional-visibility

a FoundryVTT module to hide tokens from some players, but not from others
MIT License
5 stars 8 forks source link

[BUG] Player tokens can see invisible tokens through walls while Token Vision is turned on #49

Open SylvTheShy opened 2 years ago

SylvTheShy commented 2 years ago

Module Version: v0.6.16

Describe the bug While Token Vision is set to true for scene configuration, player tokens can see tokens that are set to invisible through walls and in the darkness. When Token Vision is set to false, they cannot.

Expected behavior The opposite should be true. Tokens should not be able to see invisible tokens period and should def not be able to see them through walls or outside their vision range.

Foundry Version: Version 9 Build 269 Game System: DnD 5e

p4535992 commented 2 years ago

With "invisible" you mean the "hidden" standard hud action of foundry ? Is the first thing i check (wall or not wall). https://github.com/p4535992/conditional-visibility/blob/ffaceb8d3bb108cb4d6a934487bddcd4a4d92e5b/src/module/lib/lib.ts#L1809

Enable the debug module setting and pass to me the logs of the checker on the browser (click f12 on the browser and copy and paste the logs with suffix "conditional-visibility").