Merge branch 'v14-Dev' into v14/conditional-effects

This commit is contained in:
WBHarry 2026-03-08 15:03:20 +01:00
commit 8f7c7ce818
2 changed files with 6 additions and 1 deletions

View file

@ -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();
}

View file

@ -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,