From c2807e0676027bc13fe6aa4fc89cff8b8083d880 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 7 Mar 2026 18:02:01 +0100 Subject: [PATCH 1/2] Added in the new v14 subtract changeMode type for ActiveEffects --- module/config/generalConfig.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/config/generalConfig.mjs b/module/config/generalConfig.mjs index 8ec7034a..3b87c15d 100644 --- a/module/config/generalConfig.mjs +++ b/module/config/generalConfig.mjs @@ -870,6 +870,11 @@ export const activeEffectModes = { priority: 20, label: 'EFFECT.CHANGES.TYPES.add' }, + subtract: { + id: 'subtract', + priority: 20, + label: 'EFFECT.CHANGES.TYPES.subtract' + }, downgrade: { id: 'downgrade', priority: 30, From d3ebd30e59b9678469f05f6c31ed28b0c8835977 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 7 Mar 2026 22:26:54 +0100 Subject: [PATCH 2/2] . --- module/applications/ux/contextMenu.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/applications/ux/contextMenu.mjs b/module/applications/ux/contextMenu.mjs index 081e6ba0..6e70da0c 100644 --- a/module/applications/ux/contextMenu.mjs +++ b/module/applications/ux/contextMenu.mjs @@ -86,7 +86,7 @@ export default class DHContextMenu extends foundry.applications.ux.ContextMenu { const element = event.target.closest('.context-item'); if (!element) return; const item = this.menuItems.find(i => i.element === element); - item?.callback(this.#jQuery ? $(this.target) : this.target, event); + item?.onClick(event, this.#jQuery ? $(this.target) : this.target); this.close(); }