Bugfix for Shield AC

@azarvel - Bugfix for shield AC
master
thehappyanarchist 2022-04-26 08:39:13 -10:00 committed by GitHub
parent c0f9ac07e5
commit a83054c8f5
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;
}