Skip to content

Commit

Permalink
77 bug natural armor is considered as unproficient with the armor che…
Browse files Browse the repository at this point in the history
…ck setting on (#102)

* hasArmor fix

Make sure that `hasArmor` being undefined doesn't skew the results

* 11.315312.3
  • Loading branch information
thatlonelybugbear authored Apr 13, 2024
1 parent e3e8903 commit f02299e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "automated-conditions-5e",
"title": "Automated Conditions 5e",
"description": "A small module for Foundry VTT that tries to automate some rolling aspects of the common 5e Conditions.",
"version": "11.315312.2.1",
"version": "11.315312.3",
"authors": [
{
"name": "thatlonelybugbear",
Expand Down Expand Up @@ -52,6 +52,6 @@
"url": "https://github.com/thatlonelybugbear/automated-conditions-5e",
"license": "https://raw.githubusercontent.com/thatlonelybugbear/automated-conditions-5e/main/LICENSE",
"manifest": "https://github.com/thatlonelybugbear/automated-conditions-5e/releases/latest/download/module.json",
"download": "https://github.com/thatlonelybugbear/automated-conditions-5e/releases/download/v11.315312.2.1/module.zip",
"download": "https://github.com/thatlonelybugbear/automated-conditions-5e/releases/download/v11.315312.3/module.zip",
"changelog": "https://raw.githubusercontent.com/thatlonelybugbear/automated-conditions-5e/main/Changelog.md"
}
2 changes: 1 addition & 1 deletion scripts/ac5e-helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export function _autoArmor(actor) {
? 'AC5E.Equipment'
: false,
notProficient:
!hasArmor?.system.proficient && !hasArmor?.system.prof.multiplier,
!!hasArmor && !hasArmor.system.proficient && !hasArmor.system.prof.multiplier,
};
}

Expand Down

0 comments on commit f02299e

Please sign in to comment.