unitframes: only update player cooldown on show

This commit is contained in:
shagu
2020-09-20 12:47:57 +02:00
parent 6c40939c3d
commit 178313d7a1
+1 -1
View File
@@ -666,7 +666,7 @@ function pfUI.uf:UpdateConfig()
f.buffs[i]:SetHeight(f.config.buffsize)
if f:GetName() == "pfPlayer" then
f.buffs[i]:SetScript("OnUpdate", BuffOnUpdate)
f.buffs[i]:SetScript("OnShow", BuffOnUpdate)
elseif f:GetName() == "pfTarget" and pfUI.expansion == "tbc" then
f.buffs[i]:SetScript("OnUpdate", TargetBuffOnUpdate)
end