Stendarpaval / mob-attack-tool

A module for Foundry VTT that offers a tool for handling mob attacks in the dnd5e system.
GNU General Public License v3.0
7 stars 14 forks source link

Bonus AC not being calculated getting this error #36

Closed Avitale34 closed 3 years ago

Avitale34 commented 3 years ago

The bonus AC section under Targets is not working properly, throwing this error when trying to apply a bonus.

mobAttackTool.js:670 Uncaught (in promise) TypeError: acMod.isNaN is not a function [Detected 1 package: mob-attack-tool] at HTMLButtonElement. (mobAttackTool.js:670) at HTMLFormElement.dispatch (jquery.min.js:2) at HTMLFormElement.v.handle (jquery.min.js:2) (anonymous) @ mobAttackTool.js:670 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2

Stendarpaval commented 3 years ago

Thank you for reporting this error! The cause of that error is a mistake that I ran into several releases ago, but apparently I only fixed it for other parts of Mob Attack Tool.

As of v0.3.7, however, you should no longer run into that problem when using the AC modifier.

Avitale34 commented 3 years ago

Works great!!

Stendarpaval commented 3 years ago

Good to hear! I'll go ahead and close this issue for now, but don't hesitate to reopen it if you run into similar errors again in the future. :)