mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Continue replacement of WowVer checks
This commit is contained in:
@ -7,7 +7,7 @@ TargetCC.prototype.debuffRemaining = 0
|
|||||||
TargetCC.prototype.debuffDuration = 0
|
TargetCC.prototype.debuffDuration = 0
|
||||||
|
|
||||||
local GetNumPartyMembers, GetNumRaidMembers = GetNumPartyMembers, GetNumRaidMembers
|
local GetNumPartyMembers, GetNumRaidMembers = GetNumPartyMembers, GetNumRaidMembers
|
||||||
if IceHUD.WowVer >= 50000 then
|
if GetNumGroupMembers then
|
||||||
GetNumPartyMembers = GetNumGroupMembers
|
GetNumPartyMembers = GetNumGroupMembers
|
||||||
GetNumRaidMembers = GetNumGroupMembers
|
GetNumRaidMembers = GetNumGroupMembers
|
||||||
end
|
end
|
||||||
|
@ -7,7 +7,7 @@ TargetInvuln.prototype.buffRemaining = 0
|
|||||||
TargetInvuln.prototype.buffDuration = 0
|
TargetInvuln.prototype.buffDuration = 0
|
||||||
|
|
||||||
local GetNumPartyMembers, GetNumRaidMembers = GetNumPartyMembers, GetNumRaidMembers
|
local GetNumPartyMembers, GetNumRaidMembers = GetNumPartyMembers, GetNumRaidMembers
|
||||||
if IceHUD.WowVer >= 50000 then
|
if GetNumGroupMembers then
|
||||||
GetNumPartyMembers = GetNumGroupMembers
|
GetNumPartyMembers = GetNumGroupMembers
|
||||||
GetNumRaidMembers = GetNumGroupMembers
|
GetNumRaidMembers = GetNumGroupMembers
|
||||||
end
|
end
|
||||||
|
@ -83,7 +83,7 @@ function IceTargetMana.prototype:Enable(core)
|
|||||||
self:RegisterEvent("UNIT_FOCUS", "UpdateEvent")
|
self:RegisterEvent("UNIT_FOCUS", "UpdateEvent")
|
||||||
|
|
||||||
-- DK rune stuff
|
-- DK rune stuff
|
||||||
if IceHUD.WowVer >= 30000 then
|
if SPELL_POWER_RUNIC_POWER then
|
||||||
self:RegisterEvent("UNIT_RUNIC_POWER", "UpdateEvent")
|
self:RegisterEvent("UNIT_RUNIC_POWER", "UpdateEvent")
|
||||||
self:RegisterEvent("UNIT_MAXRUNIC_POWER", "UpdateEvent")
|
self:RegisterEvent("UNIT_MAXRUNIC_POWER", "UpdateEvent")
|
||||||
end
|
end
|
||||||
@ -135,13 +135,13 @@ function IceTargetMana.prototype:Update(unit)
|
|||||||
self.color = "TargetEnergy"
|
self.color = "TargetEnergy"
|
||||||
elseif (manaType == SPELL_POWER_RUNIC_POWER) then
|
elseif (manaType == SPELL_POWER_RUNIC_POWER) then
|
||||||
self.color = "TargetRunicPower"
|
self.color = "TargetRunicPower"
|
||||||
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_INSANITY) then
|
elseif (manaType == SPELL_POWER_INSANITY) then
|
||||||
self.color = "TargetInsanity"
|
self.color = "TargetInsanity"
|
||||||
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_FURY) then
|
elseif (manaType == SPELL_POWER_FURY) then
|
||||||
self.color = "TargetFury"
|
self.color = "TargetFury"
|
||||||
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_MAELSTROM) then
|
elseif (manaType == SPELL_POWER_MAELSTROM) then
|
||||||
self.color = "TargetMaelstrom"
|
self.color = "TargetMaelstrom"
|
||||||
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_PAIN) then
|
elseif (manaType == SPELL_POWER_PAIN) then
|
||||||
self.color = "TargetPain"
|
self.color = "TargetPain"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user