Move vault when created handling to domain card preCreate

This commit is contained in:
Carlos Fernandez 2025-12-05 22:19:44 -05:00
parent 2f31f22e42
commit 200d28e185
2 changed files with 5 additions and 5 deletions

View file

@ -66,6 +66,10 @@ export default class DHDomainCard extends BaseDataItem {
ui.notifications.error(game.i18n.localize('DAGGERHEART.UI.Notifications.duplicateDomainCard'));
return false;
}
if (!this.actor.system.loadoutSlot.available) {
data.system.inVault = true;
}
}
}