Fix Initiative

This commit is contained in:
sladecraven 2020-12-21 23:10:18 +01:00
parent 5903eed16f
commit bdf2912274

View File

@ -19,12 +19,13 @@ export class RdDTokenHud {
const hudData = { combatant: combatant, armes: RdDTokenHud.buildListeActionsCombat(combatant) };
let armesList = RdDUtility.buildArmeList(combatant);
// initiative
await RdDTokenHud._configureSubMenu(html.find('.control-icon.combat'), 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-init.html', hudData,
(event) => {
let armeIndex = event.currentTarget.attributes['data-arme-id'].value;
let combatantId = event.currentTarget.attributes['data-combatant-id'].value;
let arme = listeArmes[armeIndex];
let arme = armesList[armeIndex];
RdDUtility.rollInitiativeCompetence(combatantId, arme);
});