add attachment only flag and logic

This commit is contained in:
psitacus 2025-07-08 22:35:57 -06:00
parent bee41cc546
commit 4e304adde7
5 changed files with 72 additions and 18 deletions

View file

@ -115,6 +115,7 @@ export default class DHArmor extends BaseDataItem {
const attachedItem = await fromUuid(attachedUuid);
if (attachedItem && attachedItem.effects.size > 0) {
for (const effect of attachedItem.effects) {
// Copy ALL effects when item is attached - attachment-only flag only matters for non-attached items
const effectData = effect.toObject();
effectData.origin = `${this.parent.uuid}:${attachedUuid}`;
effectData.flags = {