From a83054c8f5bfb6f4b43a0c9aa63a7f89e3a395b5 Mon Sep 17 00:00:00 2001 From: thehappyanarchist <15377097+thehappyanarchist@users.noreply.github.com> Date: Tue, 26 Apr 2022 08:39:13 -1000 Subject: [PATCH] Bugfix for Shield AC @azarvel - Bugfix for shield AC --- src/module/actor/entity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index 24a9f7b..10db389 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -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; }