fix: return nil instead of index when excluding forms from unshifting

This commit is contained in:
Bluewhale1337
2026-09-12 12:25:49 +02:00
parent bcd497104f
commit 50a64c5549
+1 -1
View File
@@ -873,7 +873,7 @@ function HealBot_GetShapeshiftForm()
local icon_lower = string.lower(icon)
-- Exclude non-standard/custom forms like Tree of Life from unshifting
if not string.find(icon_lower, "humanoidform") and not string.find(icon_lower, "treeoflife") and not string.find(icon_lower, "healingway") and not string.find(icon_lower, "stoneclawtotem") then
return i;
return nil;
end
else
return i;