mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Replace WowVer checks in class power counters
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user