Checking...this looks simple enough.
Paste this code over the top of the code in the HideBuffs.lua
Lua Code:
UIParent:SetScript("OnUpdate", function()
if TargetFrame:IsShown() then
for i=1, MAX_TARGET_BUFFS do
local frame = _G["TargetFrameBuff"..i]
if frame ~= nil then frame:Hide() end
end
for i=1, MAX_TARGET_DEBUFFS do
local frame = _G["TargetFrameDebuff"..i]
if frame ~= nil then frame:Hide() end
end
end
if FocusFrame:IsShown() then
numDebuffs = 0
for i=1, MAX_TARGET_BUFFS do
local frame = _G["FocusFrameBuff"..i]
if frame ~= nil then frame:Hide() end
end
for i=1, MAX_TARGET_DEBUFFS do
local frame = _G["FocusFrameDebuff"..i]
if frame ~= nil then frame:Hide() end
end
end
end)