Max Cards loadout switch & Homebrew setting

This commit is contained in:
Dapoolp 2025-07-25 22:38:19 +02:00
parent fcba5041e9
commit cd517252fa
6 changed files with 36 additions and 5 deletions

View file

@ -295,6 +295,10 @@ export default function DHApplicationMixin(Base) {
options.unshift({
name: 'DAGGERHEART.APPLICATIONS.ContextMenu.useItem',
icon: 'fa-solid fa-burst',
condition: target => {
const elem = getDocFromElement(target);
return !(elem.type === 'domainCard' && elem.system.inVault)
},
callback: (target, event) => getDocFromElement(target).use(event)
});