Fixed so that actor._onUpdateDescantDocuments re-renders the EffectDisplay if effects were updated

This commit is contained in:
WBHarry 2026-03-25 13:53:21 +01:00
parent 86c21be67a
commit b9f6f6f05c

View file

@ -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;