Fix #150 - Message

This commit is contained in:
sladecraven 2022-11-27 16:17:51 +01:00
parent b5f196f942
commit 7d46699c62

View File

@ -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)