From 869e9aae9f2677306e22e5c0c8c531d587d22899 Mon Sep 17 00:00:00 2001 From: Jeff Hitchcock Date: Fri, 27 Sep 2024 13:20:52 -0700 Subject: [PATCH] [#4455] Fix Break Concentration context option in inventory Closes #4455 --- module/documents/actor/actor.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/documents/actor/actor.mjs b/module/documents/actor/actor.mjs index 930fb0276f..c425900cfa 100644 --- a/module/documents/actor/actor.mjs +++ b/module/documents/actor/actor.mjs @@ -1235,8 +1235,8 @@ export default class Actor5e extends SystemDocumentMixin(Actor) { else if ( target instanceof ActiveEffect5e ) effect = effects.has(target) ? target : null; else if ( target instanceof Item5e ) { effect = effects.find(e => { - const data = e.getFlag("dnd5e", "item.data") ?? {}; - return (data === target._id) || (data._id === target._id); + const data = e.getFlag("dnd5e", "item") ?? {}; + return (data.id === target._id) || (data.data?._id === target._id); }); } if ( !effect ) return [];