Skip to content

Commit b468665

Browse files
vaisestLocalIdentity
andauthored
Fix quarterstaff add modifier essences (#1978)
* Fix quarterstaff add modifier essences * Formatting --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 76b17e9 commit b468665

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2883,8 +2883,9 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
28832883
return modA.level > modB.level
28842884
end)
28852885
elseif sourceId == "ESSENCE" then
2886+
local itemType = (self.displayItem.type == "Staff" and self.displayItem.base.subType) or self.displayItem.type
28862887
for _, essence in pairs(self.build.data.essences) do
2887-
local modId = essence.mods[self.displayItem.type]
2888+
local modId = essence.mods[itemType]
28882889
if modId then
28892890
local mod = self.displayItem.affixes[modId] or data.itemMods.Exclusive[modId]
28902891
if mod then -- passive_hash mods don't get described

0 commit comments

Comments
 (0)