Merge pull request #54 from thehappyanarchist/Shield-Bugfix

Bugfix for Shield AC. Close #53 .
master
thehappyanarchist 2022-04-26 08:42:23 -10:00 committed by GitHub
commit c08dd6a23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -727,10 +727,10 @@ export class AcksActor extends Actor {
data.ac.naked = baseAc - data.scores.dex.mod;
const armors = this.data.items.filter((i) => i.data.type == "armor");
armors.forEach((a) => {
if (a.data.data.equipped && a.data.type != "shield") {
if (a.data.data.equipped && a.data.data.type != "shield") {
baseAc = a.data.data.ac;
baseAac = a.data.data.aac.value;
} else if (a.data.data.equipped && a.data.type == "shield") {
} else if (a.data.data.equipped && a.data.data.type == "shield") {
AcShield = a.data.data.ac;
AacShield = a.data.data.aac.value;
}