Fix Initiative
This commit is contained in:
parent
5903eed16f
commit
bdf2912274
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user