ignore rolls from legacy mods

This commit is contained in:
Alexander Drozdov
2022-01-25 17:55:59 +02:00
parent 3b34c83161
commit 3d7c131e9b
+8
View File
@@ -140,6 +140,14 @@ export function tryParseTranslation (stat: StatString, modType: ModifierType): P
}
}
if (combination.values.some(stat =>
(stat.bounds != null) &&
(stat.roll < stat.bounds.min || stat.roll > stat.bounds.max)
)) {
// Modifiers must be upgraded to the new values with a Divine Orb
return undefined
}
if (!combination.values.length && found.matcher.value) {
combination.values = [{
roll: found.matcher.value,