Fixed GM Monitor update on prepared items

This commit is contained in:
Vlyan
2025-03-23 10:59:38 +01:00
parent f11d873f41
commit 399eaa7170
2 changed files with 10 additions and 3 deletions

View File

@@ -592,7 +592,13 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
data.readied = tmpItem.system.readied;
}
tmpItem.update({ system: data });
// Update the Item: we need to manually notify the "Gm Monitor" as the Actor himself is not updated
tmpItem.update({ system: data }).then(() => {
// Only if this actor is watched
if (this.actor && game.settings.get(CONFIG.l5r5e.namespace, "gm-monitor-actors").some((uuid) => uuid === this.actor.uuid)) {
game.l5r5e.HelpersL5r5e.refreshLocalAndSocket("l5r5e-gm-monitor");
}
});
}
/**