From 866dec49403957a81a552bf1afea83d68f93ff01 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sun, 5 Jan 2025 23:48:43 +0100 Subject: [PATCH] Fix compendium --- module/models/skill.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/models/skill.mjs b/module/models/skill.mjs index a3a4276..06f5db3 100644 --- a/module/models/skill.mjs +++ b/module/models/skill.mjs @@ -28,8 +28,8 @@ export default class CthulhuEternalSkill extends foundry.abstract.TypeDataModel computeScore() { let actor = this.parent?.actor; - if (Number(this.base)) { - return Number(this.base) + this.bonus; + if ( isFinite(this.base) ) { + return Number(this.base) + Number(this.bonus); } if (!actor) { return `${this.base} + ${ String(this.bonus)}`;