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:
Hendrik Leppkes
2008-09-27 22:49:11 +02:00
parent 6f5de9a42d
commit 7fd6c09c2e
+6
View File
@@ -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