forked from GitHub-Mirrors/foundry-sw5e
Update entity.js
Updated to prevent NaN error
This commit is contained in:
parent
8344715512
commit
bb7c8af607
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue