Let the skill icon image be part of the clickable <a> to call skill roll

This commit is contained in:
raphaelpieroni
2021-05-09 19:00:43 +02:00
parent 2338447b56
commit 4f05a5e9ca
2 changed files with 14 additions and 11 deletions

View File

@ -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) => {