From 3ffe5544ef8cc4f17caaa7ade0d2998aa9fdfe96 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 8 May 2017 21:20:06 +0200 Subject: [PATCH] unitframes: do not update without cached values --- api/unitframes.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index bc3ff97e..da2da9e4 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -217,6 +217,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) if UnitIsConnected(this.label .. this.id) or ( pfUI.gitter and pfUI.gitter:IsShown()) then if not this.cache then return end + if not this.cache.hp or not this.cache.power then return end if this.config.faderange == "1" then if pfUI.api.UnitInRange(this.label .. this.id, 4) or (pfUI.gitter and pfUI.gitter:IsShown()) then