Skip to content

Commit 21bddb7

Browse files
committed
Fix desecrate-only mods becoming monk glove mods
1 parent 035a04f commit 21bddb7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Classes/Item.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
442442
self.pendingAffixList = { }
443443
local backupAffixList = { }
444444
for modId, modData in pairs(self.affixes) do
445+
-- these can produce false positives, and only ever exist on the monk glove base
446+
if modId:match("^HandWraps") and not self.name:match("Fists of Stone") then
447+
goto modContinue
448+
end
445449
if modData.affix == modName then
446450
if self:GetModSpawnWeight(modData) > 0 then
447451
if modData.type == "Prefix" then
@@ -458,6 +462,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
458462
end
459463
end
460464
end
465+
::modContinue::
461466
end
462467
if #self.pendingAffixList == 0 and #backupAffixList > 0 then
463468
self.pendingAffixList = backupAffixList

0 commit comments

Comments
 (0)