mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Removed UnitIsTapped usage for Legion
This commit is contained in:
@ -213,7 +213,9 @@ end
|
|||||||
function IceUnitBar.prototype:Update()
|
function IceUnitBar.prototype:Update()
|
||||||
IceUnitBar.super.prototype.Update(self)
|
IceUnitBar.super.prototype.Update(self)
|
||||||
|
|
||||||
|
if IceHUD.WowVer < 70000 then
|
||||||
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
|
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
|
||||||
|
end
|
||||||
|
|
||||||
self.health = UnitHealth(self.unit)
|
self.health = UnitHealth(self.unit)
|
||||||
self.maxHealth = UnitHealthMax(self.unit)
|
self.maxHealth = UnitHealthMax(self.unit)
|
||||||
|
@ -1624,7 +1624,9 @@ end
|
|||||||
|
|
||||||
function IceTargetInfo.prototype:TargetFlags(event, unit)
|
function IceTargetInfo.prototype:TargetFlags(event, unit)
|
||||||
if (unit == self.unit or unit == internal) then
|
if (unit == self.unit or unit == internal) then
|
||||||
|
if IceHUD.WowVer < 70000 then
|
||||||
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
|
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
|
||||||
|
end
|
||||||
self.targetCombat = UnitAffectingCombat(self.unit) and " |cffee4030Combat|r" or ""
|
self.targetCombat = UnitAffectingCombat(self.unit) and " |cffee4030Combat|r" or ""
|
||||||
self:UpdateBuffs()
|
self:UpdateBuffs()
|
||||||
self:Update(unit)
|
self:Update(unit)
|
||||||
|
Reference in New Issue
Block a user