12.0.29 - L'indexation d'Astrobazzarh #732

Merged
uberwald merged 6 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2024-12-17 07:12:00 +01:00
Showing only changes of commit 4cacf46ed8 - Show all commits

View File

@ -452,7 +452,7 @@ export class RdDStatBlockParser {
}
static parseCreature(statString, actorData) {
let protection = XRegExp.exec(statString, XRegExp("protection\\s+(?<value>[\\-]?\\d+)", 'giu'));
let protection = XRegExp.exec(statString, XRegExp("protection(\\s+naturelle)?\\s+(?<value>[\\-]?\\d+)", 'giu'));
if (protection?.value) {
actorData.attributs.protection.value = Number(protection.value);
}