Skip to content

Commit

Permalink
Fix weapon validator's usage of statModContext
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Aug 22, 2024
1 parent 62a93d4 commit 231d8b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1037,10 +1037,10 @@ addon.StatModValidators = {
},
},
weapon = {
validate = function(case, _, overrideStats)
validate = function(case, _, statModContext)
local subclassID
if overrideStats then
subclassID = overrideStats.subclassID
if statModContext then
subclassID = statModContext.overrideStats.subclassID
else
local weapon = GetInventoryItemID("player", INVSLOT_MAINHAND)
if weapon then
Expand Down Expand Up @@ -1328,7 +1328,7 @@ do
local level = context.level
local profileSpec = context.profile .. context.spec

if not level or level == UnitLevel("player") then
if (not level or level == UnitLevel("player")) and not next(context.overrideStats) then
value = StatModCache[statMod][profileSpec]
end

Expand Down

0 comments on commit 231d8b4

Please sign in to comment.