diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 6abc9c39..a9fcc32e 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -124,7 +124,6 @@ export class RdDActorSheet extends ActorSheet { this.armesList = duplicate(formData.data.combat); formData.data.carac.taille.isTaille = true; // To avoid button link; - formData.data.compteurs.chance.isChance = true; formData.data.blessures.resume = this.actor.computeResumeBlessure(formData.data.blessures); // Mise à jour de l'encombrement total et du prix de l'équipement @@ -290,11 +289,11 @@ export class RdDActorSheet extends ActorSheet { this.actor.rollCarac(caracName.toLowerCase()); }); - html.find('#chance-actuelle').click((event) => { + html.find('.chance-actuelle').click((event) => { this.actor.rollCarac('chance-actuelle'); }); - html.find('#chance-appel').click((event) => { + html.find('.chance-appel').click((event) => { this.actor.rollAppelChance(); }); @@ -500,7 +499,7 @@ export class RdDActorSheet extends ActorSheet { html.find('#ethylisme').change((event) => { this.actor.setEthylisme(parseInt(event.target.value)); }); - html.find('#stress-test').click((event) => { + html.find('.stress-test').click((event) => { this.actor.transformerStress(); this.render(true); }); diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 0a23c621..a8745100 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -161,7 +161,7 @@ {{#each data.attributs as |attr key|}}