From 178313d7a18f7c763f3c59dcdb075ae3a49e4538 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Sep 2020 12:47:57 +0200 Subject: [PATCH] unitframes: only update player cooldown on show --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index b3d6374f..06b5b85c 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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