From b9f6f6f05c820a7471500485d645da29300fd2f9 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 25 Mar 2026 13:53:21 +0100 Subject: [PATCH] Fixed so that actor._onUpdateDescantDocuments re-renders the EffectDisplay if effects were updated --- module/documents/actor.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index 47a9cd31..8105471b 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -122,6 +122,14 @@ export default class DhpActor extends Actor { } } + _onUpdateDescendantDocuments(parent, collection, documents, changes, options, userId) { + if (collection === 'effects') { + ui.effectsDisplay.render(); + } + + super._onUpdateDescendantDocuments(parent, collection, documents, changes, options, userId); + } + async updateLevel(newLevel) { if (!['character', 'companion'].includes(this.type) || newLevel === this.system.levelData.level.changed) return;