Fix unparsed item text "Block chance"

This commit is contained in:
Wires77
2025-01-16 21:49:26 -06:00
committed by GitHub
parent d3ae425072
commit c38dd2b8ec

View File

@@ -574,8 +574,8 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
self.requirements[specName:sub(1,3):lower()] = specToNumber(specVal)
elseif specName == "Critical Strike Range" or specName == "Attacks per Second" or specName == "Weapon Range" or
specName == "Critical Strike Chance" or specName == "Physical Damage" or specName == "Elemental Damage" or
specName == "Chaos Damage" or specName == "Chance to Block" or specName == "Armour" or
specName == "Energy Shield" or specName == "Evasion" then
specName == "Chaos Damage" or specName == "Chance to Block" or specName == "Block chance" or
specName == "Armour" or specName == "Energy Shield" or specName == "Evasion" then
self.hidden_specs = true
-- Anything else is an explicit with a colon in it (Fortress Covenant, Pure Talent, etc) unless it's part of the custom name
elseif not (self.name:match(specName) and self.name:match(specVal)) then