thatlonelybugbear / automated-conditions-5e

A small module for Foundry VTT and Dnd5e game system, which uses dnd5e Hooks to add the correct config options for Rolls for the most common 5e conditions.
MIT License
7 stars 5 forks source link

[Bug] - AC calculations error when not set to equipped armor. #72

Closed thatlonelybugbear closed 5 months ago

thatlonelybugbear commented 5 months ago

_autoArmor(actor, 'prof') will be returning null if !actor.armor which includes Natural/Mage etc armor.

Need to be checking for === false explicitly