unitframes: remove ttarget portrait workaround

This commit is contained in:
shagu
2017-01-07 12:23:18 +01:00
parent 3f0ff10990
commit 4f0a27972f
-7
View File
@@ -344,13 +344,6 @@ function pfUI.uf:CreatePortrait(frame, pos, spacing)
pfUI.uf:UpdatePortrait()
end)
if unitstr == "targettarget" then
frame.portrait:SetScript("OnUpdate", function()
if not this.tick or this.tick < GetTime() then this.tick = GetTime() + 1 else return end
pfUI.uf:UpdatePortrait()
end)
end
if pos == "bar" then
frame.portrait:SetParent(frame.hp.bar)
frame.portrait:SetAllPoints(frame.hp.bar)