mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Set card created on actor to first valid domain (#1372)
This commit is contained in:
parent
c846c5bc85
commit
6ae00e15bd
1 changed files with 3 additions and 0 deletions
|
|
@ -662,6 +662,9 @@ export default function DHApplicationMixin(Base) {
|
|||
};
|
||||
if (inVault) data['system.inVault'] = true;
|
||||
if (disabled) data.disabled = true;
|
||||
if (type === "domainCard" && parent?.system.domains?.length) {
|
||||
data.system.domain = parent.system.domains[0];
|
||||
}
|
||||
|
||||
const doc = await cls.create(data, { parent, renderSheet: !event.shiftKey });
|
||||
if (parentIsItem && type === 'feature') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue