mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Replace WowVer checks in class power counters
This commit is contained in:
@ -134,7 +134,7 @@ end
|
|||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
local _, unitClass = UnitClass("player")
|
local _, unitClass = UnitClass("player")
|
||||||
if (unitClass == "PALADIN" and IceHUD.WowVer >= 40000) then
|
if (unitClass == "PALADIN" and (PaladinPowerBar or PaladinPowerBarFrame)) then
|
||||||
IceHUD.HolyPower = HolyPower:new()
|
IceHUD.HolyPower = HolyPower:new()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ end
|
|||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
local _, unitClass = UnitClass("player")
|
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()
|
IceHUD.ShadowOrbs = ShadowOrbs:new()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -276,6 +276,6 @@ end
|
|||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
local _, unitClass = UnitClass("player")
|
local _, unitClass = UnitClass("player")
|
||||||
if (unitClass == "WARLOCK" and IceHUD.WowVer >= 40000) then
|
if (unitClass == "WARLOCK" and WarlockPowerFrame) then
|
||||||
IceHUD.ShardCounter = ShardCounter:new()
|
IceHUD.ShardCounter = ShardCounter:new()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user