Skip to content

Commit

Permalink
Fix #89 check that shapeshift form is nonzero
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Sep 6, 2022
1 parent d923b18 commit ba0f06e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,12 @@ local StatModValidators = {
return AuraUtil.FindAuraByName(case.buff, "player")
end,
stance = function(case)
return GetFileIDFromPath(case.stance) == GetShapeshiftFormInfo(GetShapeshiftForm())
local form = GetShapeshiftForm()
if form and form > 0 then
return GetFileIDFromPath(case.stance) == GetShapeshiftFormInfo(form)
else
return false
end
end,
set = function(case)
return equipped_sets[case.set] and equipped_sets[case.set] >= case.pieces
Expand Down

0 comments on commit ba0f06e

Please sign in to comment.