Mourblade : add initiative
This commit is contained in:
parent
fcec785f00
commit
98ccd8fde1
@ -12,7 +12,7 @@ export class MournbladeCombat extends Combat {
|
|||||||
let initBonus = c.actor ? c.actor.getInitiativeScore() : 0
|
let initBonus = c.actor ? c.actor.getInitiativeScore() : 0
|
||||||
let roll = new Roll("1d10 + "+initBonus).roll({ async: false})
|
let roll = new Roll("1d10 + "+initBonus).roll({ async: false})
|
||||||
await MournbladeUtility.showDiceSoNice(roll, game.settings.get("core", "rollMode"))
|
await MournbladeUtility.showDiceSoNice(roll, game.settings.get("core", "rollMode"))
|
||||||
console.log("Init bonus", initBonus, roll.total)
|
//console.log("Init bonus", initBonus, roll.total)
|
||||||
await this.updateEmbeddedDocuments("Combatant", [ { _id: id, initiative: roll.total } ]);
|
await this.updateEmbeddedDocuments("Combatant", [ { _id: id, initiative: roll.total } ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user