Use initiative
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user