unitframes: update heal predictions on show

This commit is contained in:
shagu
2017-12-22 13:35:15 +01:00
parent 0ab7507cc8
commit 4fb75aa7d4
+6
View File
@@ -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