Removed UnitIsTapped usage for Legion

This commit is contained in:
Parnic
2016-05-24 00:50:14 -05:00
parent efc25bdb9c
commit 9b5df60efa
2 changed files with 6 additions and 2 deletions

View File

@ -213,7 +213,9 @@ end
function IceUnitBar.prototype:Update()
IceUnitBar.super.prototype.Update(self)
if IceHUD.WowVer < 70000 then
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
end
self.health = UnitHealth(self.unit)
self.maxHealth = UnitHealthMax(self.unit)

View File

@ -1624,7 +1624,9 @@ end
function IceTargetInfo.prototype:TargetFlags(event, unit)
if (unit == self.unit or unit == internal) then
if IceHUD.WowVer < 70000 then
self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit))
end
self.targetCombat = UnitAffectingCombat(self.unit) and " |cffee4030Combat|r" or ""
self:UpdateBuffs()
self:Update(unit)