Use initiative

This commit is contained in:
LeRatierBretonnien 2023-07-29 18:11:57 +02:00
parent b798cde48d
commit 9a30275640
2 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ export class Hero6Actor extends Actor {
getBaseInit(turn) {
if ( turn != this.turn) {
let r = new Roll("1d6").roll({ async: false })
this.currentInit = this.system.characteristics.dex.value + (r.total / 10)
this.currentInit = this.system.characteristics.dex.initiative + (r.total / 10)
this.turn = turn
}
return this.currentInit

View File

@ -44,7 +44,7 @@ export class Hero6Combat extends Combat {
/* -------------------------------------------- */
holdAction(combatantId) {
this.rebuildInitiative()
console.log("Rebuilding.....")
//console.log("Rebuilding.....")
}
/* -------------------------------------------- */
@ -145,7 +145,7 @@ export class Hero6Combat extends Combat {
}
if (updList.length > 0) {
await this.updateEmbeddedDocuments("Combatant", updList);
console.log("Rebuild INIT", updList)
//console.log("Rebuild INIT", updList)
for (let c of updList) {
if (c.initiative != 0) {
return true