This commit is contained in:
Alexander Drozdov
2020-03-06 00:26:15 +02:00
parent b85a4355b8
commit 2f6e491e00
+4 -3
View File
@@ -398,8 +398,6 @@ function parseModifiers (expected: string[]) {
mod = tryFindModifier(stat.value)
if (mod) {
// @TODO: IMPORTANT! distinguish between local and global mods
if (modType == null) {
for (const type of mod.modInfo.types) {
if (
@@ -414,7 +412,10 @@ function parseModifiers (expected: string[]) {
}
}
if (mod.modInfo.types.find(type => type.name === modType)) {
if (
expected.includes(modType!) &&
mod.modInfo.types.find(type => type.name === modType)
) {
mod.type = modType!
item.modifiers.push(mod)
stat = statIterator.next(true)