Fix paging support for Warlocks in Metamorphosis
Warlocks require a special treatment right now. Metamorphosis does not have a default BonusBar Offset and can only be caught by [stance:2] right now.
This commit is contained in:
+10
-6
@@ -43,7 +43,7 @@ local DefaultStanceMap = setmetatable({}, { __index = function(t,k)
|
|||||||
}
|
}
|
||||||
elseif k == "WARLOCK" then
|
elseif k == "WARLOCK" then
|
||||||
newT = {
|
newT = {
|
||||||
{ id = "metamorphosis", name = GetSpellInfo(59672), index = 1 },
|
{ id = "metamorphosis", name = GetSpellInfo(59672), index = 2 },
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
rawset(t, k, newT)
|
rawset(t, k, newT)
|
||||||
@@ -98,13 +98,17 @@ function ActionBar:UpdateStates()
|
|||||||
for i,v in pairs(stancemap) do
|
for i,v in pairs(stancemap) do
|
||||||
local state = self:GetStanceState(v)
|
local state = self:GetStanceState(v)
|
||||||
if state and state ~= 0 and v.index then
|
if state and state ~= 0 and v.index then
|
||||||
if playerclass == "DRUID" and v.id == "cat" then
|
if playerclass == "WARLOCK" then
|
||||||
local prowl = self:GetStanceState("prowl")
|
table_insert(statedriver, fmt("[stance:%s]%s", v.index, state))
|
||||||
if prowl then
|
else
|
||||||
table_insert(statedriver, fmt("[bonusbar:%s,stealth:1]%s", v.index, prowl))
|
if playerclass == "DRUID" and v.id == "cat" then
|
||||||
|
local prowl = self:GetStanceState("prowl")
|
||||||
|
if prowl then
|
||||||
|
table_insert(statedriver, fmt("[bonusbar:%s,stealth:1]%s", v.index, prowl))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
table_insert(statedriver, fmt("[bonusbar:%s]%s", v.index, state))
|
||||||
end
|
end
|
||||||
table_insert(statedriver, fmt("[bonusbar:%s]%s", v.index, state))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user