From bb7c8af6078e04606a782622cea72a1752cb1c2d Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Tue, 10 Aug 2021 16:12:03 -0400 Subject: [PATCH] Update entity.js Updated to prevent NaN error --- module/item/entity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/item/entity.js b/module/item/entity.js index b60dd2d2..62ea74cd 100644 --- a/module/item/entity.js +++ b/module/item/entity.js @@ -619,7 +619,7 @@ export default class Item5e extends Item { const level = this.actor?.data.data.powers[consumePowerLevel]; const fp = this.actor.data.data.attributes.force.points; const tp = this.actor.data.data.attributes.tech.points; - const powerCost = id.level + 1; + const powerCost = parseInt(id.level, 10) + 1; const innatePower = this.actor.data.data.attributes.powercasting === "innate"; if (!innatePower) { switch (id.school) {