Expanded the existing _preCreate logic

This commit is contained in:
WBHarry 2026-01-27 17:50:23 +01:00
parent 38dc2d6a56
commit 9d46f94338
2 changed files with 3 additions and 11 deletions

View file

@ -94,8 +94,10 @@ export default class DHDomainCard extends BaseDataItem {
return false;
}
if (!this.actor.system.loadoutSlot.available) {
if (!this.actor.system.loadoutSlot.available && !this.loadoutIgnore) {
data.system.inVault = true;
await this.updateSource({ inVault: true });
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.loadoutMaxReached'));
}
}
}