WFRP4e-FoundryVTT
WFRP4e-FoundryVTT copied to clipboard
auras and area template tweaks
Hi,
this is my proposal to switch auras from dummy templates to hidden, persistent templates. This will allow integration with Automated Animations, as well as with potentially other modules (Levels). There are also 2 scenarios, when effects/templates are not correctly handled. If you have a token on scene, and you add an item with Aura effect - then aura will not show until any token on the scene moves. Same when you delete an item - i wasn't sure if i want to put this part of code in delete / create hooks.
In addition, there are three methods for checking the templates intersection with tokens, it is based on https://github.com/operation404/boneyard-template-tools (if you would consider using it, you might mention this module).
And this is how it looks like. sample.webm
I've implemented my preferred method of handling aura templates in b10049a9f473504d7169458a169da6fa0a2d4b11
Please review it to consider how to include your desired features