vtt-lair / simbuls-cover-calculator

A Foundry VTT module that calculates cover for DnD 5e
MIT License
6 stars 4 forks source link

[Bug?] - token is not defined if you remove Prone effect. #32

Closed thatlonelybugbear closed 1 year ago

thatlonelybugbear commented 1 year ago

Removing Prone effect from a token HUD seems to trigger

Uncaught (in promise) ReferenceError: undefined. token is not defined   CoverCalculatorTokenSizes.js:154

I changed CoverCalculatorTokenSizes.js:151 to static isDowned(status,token) { and CoverCalculatorTokenSizes.js:214 to if (CoverCalculatorTokenSizes.isDowned(status,token)) { as a quick fix, but I didn't spend much time validating it so I am not making a PR for this yet.

vtt-lair commented 1 year ago

Thanks, I already have found this issue and fixed but not released it as yet. Real life hit me a bit hard the last couple of months. Will try to get a new version out this weekend