Commit 5566c520 authored by Tukz's avatar Tukz

Activate repuration bars.

parent 56cf26d8
......@@ -111,7 +111,7 @@ function Loading:OnEvent(event, addon)
end
if C["Misc"].ReputationEnable then
--T["Miscellaneous"]["Reputation"]:Enable()
T["Miscellaneous"]["Reputation"]:Enable()
end
if C["Misc"].ErrorFilterEnable then
......
......@@ -94,15 +94,8 @@ function Reputation:Enable()
self.IsCreated = true
end
local HasAzeriteItem = C_AzeriteItem.FindActiveAzeriteItem()
self.RepBar1:Show()
if HasAzeriteItem then
self.RepBar2:Hide()
else
self.RepBar2:Show()
end
self.RepBar2:Show()
end
function Reputation:Disable()
......
......@@ -19,7 +19,7 @@ function T17:MoveXPBars()
local Experience = Misc.Experience
local Reputation = Misc.Reputation
if Experience.NumBars then
if Experience and Experience.NumBars then
for i = 1, Experience.NumBars do
local Bar = Experience["XPBar"..i]
local RestedBar = Experience["RestedBar"..i]
......@@ -35,7 +35,7 @@ function T17:MoveXPBars()
end
end
if Reputation.NumBars then
if Reputation and Reputation.NumBars then
for i = 1, Reputation.NumBars do
local Bar = Reputation["RepBar"..i]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment