Fix Visibility Configuration for Metamorphosis
Metamorphosis is on slot 1 for GetShapeshiftFormInfo(), but when active GetShapeshiftForm() returns 2. Added a hopefully temporary hack to work around the issue.
This commit is contained in:
@@ -66,6 +66,8 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
local _, class = UnitClass("player")
|
||||
|
||||
local function getStanceTable()
|
||||
local num = GetNumShapeshiftForms()
|
||||
|
||||
@@ -73,6 +75,10 @@ local function getStanceTable()
|
||||
for i = 1, num do
|
||||
tbl[i] = select(2, GetShapeshiftFormInfo(i))
|
||||
end
|
||||
-- HACK: Metamorphosis work around, it is on slot 1 in GetShapeshiftFormInfo() but stance:2 is active..
|
||||
if class == "WARLOCK" and tbl[1] == GetSpellInfo(59672) then
|
||||
tbl[2], tbl[1] = tbl[1], nil
|
||||
end
|
||||
return tbl
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user