- Fixed another WoW 5.0 problem: GetPrimaryTalentTree() -> GetSpecialization() in the Eclipse module.

This commit is contained in:
Parnic
2012-07-02 16:23:24 +00:00
parent 6b457e2b16
commit cb2645705c

View File

@ -118,7 +118,13 @@ function EclipseBar.prototype:UpdateShown()
local form = GetShapeshiftFormID() local form = GetShapeshiftFormID()
if form == MOONKIN_FORM or not form then if form == MOONKIN_FORM or not form then
if GetPrimaryTalentTree() == 1 then local PrimaryTalentTree = 0
if IceHUD.WowVer >= 50000 then
PrimaryTalentTree = GetSpecialization()
else
PrimaryTalentTree = GetPrimaryTalentTree()
end
if PrimaryTalentTree == 1 then
self:Show(true) self:Show(true)
else else
self:Show(false) self:Show(false)