From cb2645705c98e9df7c7b33e8e5193e645187aae7 Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 2 Jul 2012 16:23:24 +0000 Subject: [PATCH] - Fixed another WoW 5.0 problem: GetPrimaryTalentTree() -> GetSpecialization() in the Eclipse module. --- modules/EclipseBar.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/EclipseBar.lua b/modules/EclipseBar.lua index 5916129..790df5b 100644 --- a/modules/EclipseBar.lua +++ b/modules/EclipseBar.lua @@ -118,7 +118,13 @@ function EclipseBar.prototype:UpdateShown() local form = GetShapeshiftFormID() 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) else self:Show(false)