Fix compendium

This commit is contained in:
LeRatierBretonnien 2025-01-05 23:48:43 +01:00
parent ef93967ab7
commit 866dec4940

View File

@ -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)}`;