From ba0f06efac19d6ab903ea4eec12dd2dfefa4545c Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Mon, 5 Sep 2022 20:07:06 -0500 Subject: [PATCH] Fix #89 check that shapeshift form is nonzero --- libs/StatLogic/StatLogic.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/StatLogic/StatLogic.lua b/libs/StatLogic/StatLogic.lua index 36fb702..e4f9e85 100644 --- a/libs/StatLogic/StatLogic.lua +++ b/libs/StatLogic/StatLogic.lua @@ -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