Fix Prowl Paging. Before, when turned prowl was turned off, it would switch back to Page0, which is not intended. Instead, it will stay in the cat bar now if prowl is set to "Do not page".

This commit is contained in:
Hendrik Leppkes
2009-02-23 17:59:27 +01:00
parent aee5d1e3cf
commit 83926efad4
+1 -1
View File
@@ -137,7 +137,7 @@ function StateBar:UpdateStates(returnOnly)
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 == "DRUID" and v.id == "cat" then
local prowl = self:GetStanceState("prowl") local prowl = self:GetStanceState("prowl")
if prowl then if prowl and prowl ~= 0 then
table_insert(statedriver, fmt("[bonusbar:%s,stealth:1]%s", v.index, prowl)) table_insert(statedriver, fmt("[bonusbar:%s,stealth:1]%s", v.index, prowl))
end end
end end