Skip to content

Commit

Permalink
Fix unparsed item text "Block chance"
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 authored Jan 17, 2025
1 parent d3ae425 commit c38dd2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c38dd2b

Please sign in to comment.