diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 4e6d70d2..1661d7d4 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -321,8 +321,8 @@ export class RdDActorSheet extends ActorSheet { }); // Roll Skill - html.find('.competence-label a').click((event) => { - let compName = event.currentTarget.text; + html.find('a.competence-label').click((event) => { + let compName = event.currentTarget.name; this.actor.rollCompetence(compName); }); html.find('.tache-label a').click((event) => { diff --git a/templates/actor-sheet-competence-partial.html b/templates/actor-sheet-competence-partial.html index 4e87bf5d..9162435f 100644 --- a/templates/actor-sheet-competence-partial.html +++ b/templates/actor-sheet-competence-partial.html @@ -4,16 +4,19 @@ {{else}}