From a18393a9d05d4e0fa04b74998b4a235b33c052e7 Mon Sep 17 00:00:00 2001 From: Nikhil Nagarajan Date: Wed, 28 Jan 2026 02:51:00 -0500 Subject: [PATCH] [PR] Loadout Max detection when pulled from compendium (#1589) * Initial test implementation for solution * Expanded the existing _preCreate logic --------- Co-authored-by: WBHarry --- module/data/item/domainCard.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/data/item/domainCard.mjs b/module/data/item/domainCard.mjs index 327dafce..9a14d45e 100644 --- a/module/data/item/domainCard.mjs +++ b/module/data/item/domainCard.mjs @@ -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')); } } }