Eriku33 / Foundry-VTT-Image-Hover

Character art module for Foundry Virtual Table top
MIT License
7 stars 12 forks source link

Add option to not show image if token has detection filter #67

Open farling42 opened 3 months ago

farling42 commented 3 months ago

In Pathfinder 2E there is an "imprecise" sense option which displays a filter over the token (e.g. when the token is blind, but can still hear the target). Image Hover currently will display the image of the token clearly, thus reducing the experience for the player.

This pull request adds a simple check that the token has no "detectionFilter" on it before displaying the hover image (with a module setting to disable this function). I've defaulted the setting to ON, so that users of the module will immediately see the benefits.