Skip to content

Commit

Permalink
Add level check for Specialization stats
Browse files Browse the repository at this point in the history
Error fix for characters under level 10.
  • Loading branch information
ViksUI committed Jul 1, 2015
1 parent f677d51 commit 691510e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ShestakUI/Libs/LiteStats/LiteStats.lua
Expand Up @@ -1419,7 +1419,11 @@ if stats.enabled then
OnUpdate = function(self, u)
self.elapsed = self.elapsed + u
if self.fired and self.elapsed > 2.5 then
if T.level >= SHOW_TALENT_LEVEL then
self.text:SetText(gsub(stats[format("spec%dfmt", GetSpecialization())], "%[(%w-)%]", tags))
else
self.text:SetText(gsub(stats[format("spec%dfmt", GetActiveSpecGroup())], "%[(%w-)%]", tags))
end
self.elapsed, self.fired = 0, false
end
end
Expand Down

0 comments on commit 691510e

Please sign in to comment.