foundryvtt / dnd5e

An implementation of the 5th Edition game system for Foundry Virtual Tabletop (http://foundryvtt.com).
MIT License
333 stars 222 forks source link

[Feature Request] Support alternative grid highlighting logic for Measured Templates that support the DMG method for template hit detection. #836

Open aaclayton opened 3 years ago

aaclayton commented 3 years ago

Originally in GitLab by @marcoseither

The calculation of the measured templates seems to be incorrect, e.g. 15 feet Darkness Spell. The marked squares are not part of the effect using the DMG version of distance measurement. Even if you use the PHB version the template is incorrect. image

aaclayton commented 3 years ago

The grid highlighting performed by the Measured Template system is not system-specific (at the moment) so this is simply the core behavior that is not specific to the 5e system. The default implementation tests the center of the grid space as the test of coverage. In the future perhaps a system-level option could be added but that is not planned at this time.