From 9f1e3c213c64ece8bde4af3e9dddbbad72484b02 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Tue, 13 Jul 2021 13:45:27 -0400 Subject: [PATCH] Update entity.js for better rolls compatibility --- 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 11ffc620..5965dfe8 100644 --- a/module/item/entity.js +++ b/module/item/entity.js @@ -598,7 +598,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){