From 1e9c070ff838a05f129ef6f1aa09d5e711961d23 Mon Sep 17 00:00:00 2001 From: "ahandleman@wustl.edu" Date: Wed, 4 Sep 2024 23:08:17 -0500 Subject: [PATCH 1/2] Small fix - clicking an agenda ability opens that abilitiy instead of the agenda --- module/sheets/actor-sheet.mjs | 4 ++-- templates/actor/parts/actor-abilities.hbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index d84f4eb..46e3b7b 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -360,8 +360,8 @@ export class CainActorSheet extends ActorSheet { }); html.find('.agenda-ability').on('click', (event) => { - const itemId = this.actor.system.currentAgenda; // Get the current agenda ID - this._openAgendaItemSheet(itemId); + const itemId = event.currentTarget.dataset.id; + this._openAgendaItemSheet(event.currentTarget.dataset.id); }); // Event delegation for blasphemy-passive diff --git a/templates/actor/parts/actor-abilities.hbs b/templates/actor/parts/actor-abilities.hbs index f231087..776d7ff 100644 --- a/templates/actor/parts/actor-abilities.hbs +++ b/templates/actor/parts/actor-abilities.hbs @@ -80,7 +80,7 @@