Various automations fixes

This commit is contained in:
2024-06-10 14:30:12 +02:00
parent 92684b0d32
commit dc4429f3e1
74 changed files with 2260 additions and 1952 deletions

View File

@@ -21,7 +21,7 @@ export class DarkStarsCombat extends Combat {
for (let cId of ids) {
const c = this.combatants.get(cId);
let id = c._id || c.id;
let initScore = c.actor ? c.actor.getInitiativeScore(this.id, id) : -1;
let initScore = c.actor ? await c.actor.getInitiativeScore(this.id, id) : -1;
await this.updateEmbeddedDocuments("Combatant", [{ _id: id, initiative: initScore }]);
setTimeout(() => this.processOtherTurns(c, initScore), 400)
}