Replace WowVer checks in class power counters

This commit is contained in:
Parnic
2022-09-18 22:43:04 -05:00
parent 9fc90551e2
commit faa3d326aa
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ end
-- Load us up
local _, unitClass = UnitClass("player")
if (unitClass == "PALADIN" and IceHUD.WowVer >= 40000) then
if (unitClass == "PALADIN" and (PaladinPowerBar or PaladinPowerBarFrame)) then
IceHUD.HolyPower = HolyPower:new()
end

View File

@ -103,7 +103,7 @@ end
-- Load us up
local _, unitClass = UnitClass("player")
if (unitClass == "PRIEST" and IceHUD.WowVer >= 50000 and IceHUD.WowVer < 70000) then
if (unitClass == "PRIEST" and PriestBarFrame) then
IceHUD.ShadowOrbs = ShadowOrbs:new()
end

View File

@ -276,6 +276,6 @@ end
-- Load us up
local _, unitClass = UnitClass("player")
if (unitClass == "WARLOCK" and IceHUD.WowVer >= 40000) then
if (unitClass == "WARLOCK" and WarlockPowerFrame) then
IceHUD.ShardCounter = ShardCounter:new()
end