mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Max Cards loadout switch & Homebrew setting
This commit is contained in:
parent
fcba5041e9
commit
cd517252fa
6 changed files with 36 additions and 5 deletions
|
|
@ -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)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue