diff --git a/module/actor.js b/module/actor.js index 96928240..802d1a80 100644 --- a/module/actor.js +++ b/module/actor.js @@ -455,9 +455,9 @@ export class RdDActor extends Actor { updateCarac( caracName, caracValue ) { let caracpath = "data.carac." + caracName + ".value" - if (caracName == reve) { + if (caracName == "reve") { if (caracValue > Misc.toInt(this.data.data.reve.seuil.value)) { - this.setPointDeSeuil(caracValue); + this.setPointsDeSeuil(caracValue); } } this.update( { caracpath: caracValue } );