From 4cacf46ed8c72b3a4c0ffbb06d0ff2912bd25d3a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 17 Dec 2024 01:32:56 +0100 Subject: [PATCH] Import "protection naturelle" --- module/apps/rdd-import-stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index c501d06c..f97eee01 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -452,7 +452,7 @@ export class RdDStatBlockParser { } static parseCreature(statString, actorData) { - let protection = XRegExp.exec(statString, XRegExp("protection\\s+(?[\\-]?\\d+)", 'giu')); + let protection = XRegExp.exec(statString, XRegExp("protection(\\s+naturelle)?\\s+(?[\\-]?\\d+)", 'giu')); if (protection?.value) { actorData.attributs.protection.value = Number(protection.value); }