fix: prevent accidental unshifting while in Tree of Life or Healing Way forms

This commit is contained in:
Bluewhale1337
2026-09-09 17:32:38 +02:00
parent a0b6e2f72d
commit 00a1ddf789
+5
View File
@@ -870,9 +870,14 @@ function HealBot_GetShapeshiftForm()
for i=1,forms do for i=1,forms do
local icon,name,active = GetShapeshiftFormInfo(i); local icon,name,active = GetShapeshiftFormInfo(i);
if active then if active then
-- Do not unshift from Tree of Life form
if icon and (string.find(string.lower(icon), "treeoflife") or string.find(string.lower(icon), "healingway")) then
return nil;
end
return i; return i;
end end
end end
end end
return nil; return nil;
end end