From 8000ee41566ff58f8d5dfe3143c2cafc0ba0f058 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 6 Jan 2021 16:25:29 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20d=C3=A9t=C3=A9rioration=20armure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 7c1426e5..777d20a7 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2024,7 +2024,7 @@ export class RdDActor extends Actor { dmg = 0; // Reset it if ( update.data.deterioration >= 10) { update.data.deterioration = 0; - let res = /\d+^/.exec(update.data.protection); + let res = /\d+/.exec(update.data.protection); if ( res ) update.data.protection = "1d"+update.data.protection; // if ( update.data.protection.toString().length == 1 )