From 4fb75aa7d4267931f2b03ca8bf43d9dcdb88cdf7 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 22 Dec 2017 13:35:15 +0100 Subject: [PATCH] unitframes: update heal predictions on show --- api/unitframes.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 176fd9f3..cc4c29a6 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -116,6 +116,12 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) f.incHeal:SetStatusBarColor(0, 1, 0, 0.5) f.incHeal:Hide() + f.incHeal:SetScript("OnShow", function() + if pfUI.prediction and f.label and f.id then + pfUI.prediction:TriggerUpdate(UnitName(f.label .. f.id)) + end + end) + if pfUI_config.unitframes.custombg == "0" then f.incHeal:SetFrameLevel(2) else