diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 79880544..506278cd 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -177,6 +177,11 @@ export class RdDActorSheet extends ActorSheet { HtmlUtility._showControlWhen($(".gm-only"), game.user.isGM); + html.find('#show-hide-competences').click((event) => { + this.options.showCompNiveauBase = !this.options.showCompNiveauBase; + this.render(true); + }); + // Everything below here is only needed if the sheet is editable if (!this.options.editable) return; @@ -396,10 +401,6 @@ export class RdDActorSheet extends ActorSheet { this.options.editCaracComp = !this.options.editCaracComp; this.render(true); }); - html.find('#show-hide-competences').click((event) => { - this.options.showCompNiveauBase = !this.options.showCompNiveauBase; - this.render(true); - }); html.find('#show-hide-archetype').click((event) => { this.options.montrerArchetype = !this.options.montrerArchetype; this.render(true);