mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-12 18:15:01 +00:00
fix: return nil instead of index when excluding forms from unshifting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user