Skip to content

Commit

Permalink
[#4322] Fix rider activities displaying in activities dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Sep 18, 2024
1 parent db8c8cc commit be32700
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module/applications/actor/sheet-v2-mixin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ export default function ActorSheetV2Mixin(Base) {
ctx.save = item.system.activities?.getByType("save")[0]?.save;

// Activities
ctx.activities = item.system.activities?.map(this._prepareActivity.bind(this));
ctx.activities = item.system.activities
?.filter(a => !item.getFlag("dnd5e", "riders.activity")?.includes(a.id))
?.map(this._prepareActivity.bind(this));
}

/* -------------------------------------------- */
Expand Down

0 comments on commit be32700

Please sign in to comment.