mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Max Cards loadout switch & Homebrew setting (#412)
* Max Cards loadout switch & Homebrew setting * Fixes * Fixes
This commit is contained in:
parent
2a4777f1a0
commit
dddee78356
6 changed files with 42 additions and 4 deletions
|
|
@ -310,6 +310,10 @@ export default function DHApplicationMixin(Base) {
|
|||
options.unshift({
|
||||
name: 'DAGGERHEART.APPLICATIONS.ContextMenu.useItem',
|
||||
icon: 'fa-solid fa-burst',
|
||||
condition: target => {
|
||||
const doc = getDocFromElement(target);
|
||||
return !(doc.type === 'domainCard' && doc.system.inVault)
|
||||
},
|
||||
callback: (target, event) => getDocFromElement(target).use(event)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue