From 9b5df60efaa066c8cad3cb5ed1785c87fd92f351 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 24 May 2016 00:50:14 -0500 Subject: [PATCH] Removed UnitIsTapped usage for Legion --- IceUnitBar.lua | 4 +++- modules/TargetInfo.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/IceUnitBar.lua b/IceUnitBar.lua index 2e38101..11f0e4f 100644 --- a/IceUnitBar.lua +++ b/IceUnitBar.lua @@ -213,7 +213,9 @@ end function IceUnitBar.prototype:Update() IceUnitBar.super.prototype.Update(self) - self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit)) + 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) diff --git a/modules/TargetInfo.lua b/modules/TargetInfo.lua index b3ac3be..afbabbd 100644 --- a/modules/TargetInfo.lua +++ b/modules/TargetInfo.lua @@ -1624,7 +1624,9 @@ end function IceTargetInfo.prototype:TargetFlags(event, unit) if (unit == self.unit or unit == internal) then - self.tapped = UnitIsTapped(self.unit) and (not UnitIsTappedByPlayer(self.unit)) + 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)