Fix: log erreur TMR en mode visu

En mode visualisation, les informations du personnage ne sont
pas affichées
This commit is contained in:
2024-03-09 19:38:53 +01:00
parent 3b269b2baa
commit bc169d931b
2 changed files with 42 additions and 44 deletions

View File

@ -298,13 +298,12 @@ export class RdDTMRDialog extends Dialog {
/* -------------------------------------------- */
async updateValuesDisplay() {
if (!this.rendered) {
if (this.viewOnly || !this.rendered) {
return;
}
const coord = this._getCoordActor();
HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));
let ptsreve = document.getElementById("tmr-pointsreve-value");
ptsreve.innerHTML = this.actor.system.reve.reve.value;