Closed Zamrod closed 2 years ago
It does work with some combinations of monsters. I added one PC and this Polar Bear and it caused the error. Attaching the json for reference.
After some further investigation the cause appears to be attempting to match on enemyTraitsObject.dr.custom and enemyTraitsObject.di.custom when those values are null. If you add an if statement checking if they are null before attempting to the do the match, it works fine. There are 4 incidents of this in ActorUtils.js
Thanks for the report and investigation! I should be able to fix tonight.
Fixed with this release.
https://github.com/etriebe/combat-estimate/releases/tag/1.0.22
Trying to use the module and almost any combination of creatures I try gives me a blank list of friendly and hostile combatants and the following error in the console: