Skip to content

Commit

Permalink
[#4455] Fix Break Concentration context option in inventory
Browse files Browse the repository at this point in the history
Closes #4455
  • Loading branch information
arbron committed Sep 27, 2024
1 parent 294c608 commit 869e9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/documents/actor/actor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 869e9aa

Please sign in to comment.