From 063d529f09140f50c81fc1878521d7e689ab5f44 Mon Sep 17 00:00:00 2001 From: Jacob Lucas Date: Sat, 3 Jul 2021 01:41:26 +0100 Subject: [PATCH] Fixed bug that prevented NPCs power DCs from having values --- module/actor/entity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor/entity.js b/module/actor/entity.js index a75c0e6d..f5141b73 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -661,8 +661,8 @@ export default class Actor5e extends Actor { */ _computeDerivedPowercasting (actorData) { - if ((actorData.type === 'actor') || (actorData.type === 'npc')) return; - + if (!(actorData.type === 'character' || actorData.type === 'npc')) return; + const ad = actorData.data; // Powercasting DC for Actors and NPCs