diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index f97eee01..cd109e4d 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -478,14 +478,15 @@ export class RdDStatBlockParser { } static parseActorType(statString) { - let niveau = XRegExp.exec(statString, XRegExp("Niveau\\s+(?[\\+\\-]?\\d+)", 'giu')) + let force = XRegExp.exec(statString, XRegExp("Force\\s+(?[\\+\\-]?\\d+)", 'giu')) + let vue = XRegExp.exec(statString, XRegExp("Vue\\s+(?[\\+\\-]?\\d+)", 'giu')) let perception = XRegExp.exec(statString, XRegExp("perception\\s+(?\\d+)", 'giu')) - if (perception?.value) { - return "creature" - } - if (niveau?.value) { + if (!force) { return "entite" } + if (!vue || perception) { + return "creature" + } return "personnage" }