Minot fixes

This commit is contained in:
2023-02-22 23:08:03 +01:00
parent e62480efb0
commit 6e4cd71b99
3 changed files with 8 additions and 4 deletions

View File

@ -229,9 +229,9 @@ export class MaleficesActor extends Actor {
}
/* -------------------------------------------- */
getInitiativeScore(combatId, combatantId) {
let init = Math.floor(this.system.attributs.physique.value+this.system.attributs.habilete.value)
let init = Math.floor( (this.system.attributs.physique.value+this.system.attributs.habilite.value) / 2)
let subvalue = new Roll("1d20").roll({async: false})
return init + (subvalue / 100)
return init + (subvalue.total / 100)
}
/* -------------------------------------------- */