From 7d46699c62116377439c62fd173dd30e905ac84c Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 27 Nov 2022 16:17:51 +0100 Subject: [PATCH] Fix #150 - Message --- modules/pegasus-create-char.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/pegasus-create-char.js b/modules/pegasus-create-char.js index 8e95644..1d37a47 100644 --- a/modules/pegasus-create-char.js +++ b/modules/pegasus-create-char.js @@ -530,7 +530,10 @@ export class PegasusActorCreate { formData.rolestats = [] for (let stat of this.roleStats) { if (stat.flag) { - formData.rolestats.push(duplicate(this.actor.system.statistics[stat.name.toLowerCase()])) + let actorStat = this.actor.system.statistics[stat.name.toLowerCase()] + if ( actorStat.value < 5) { // Only below D12 + formData.rolestats.push(duplicate(actorStat)) + } } } //console.log("STAT", this.roleStats, formData)