mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 09:50:50 +00:00
unitframes: do not update without cached values
This commit is contained in:
@@ -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 UnitIsConnected(this.label .. this.id) or ( pfUI.gitter and pfUI.gitter:IsShown()) then
|
||||||
if not this.cache then return end
|
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 this.config.faderange == "1" then
|
||||||
if pfUI.api.UnitInRange(this.label .. this.id, 4) or (pfUI.gitter and pfUI.gitter:IsShown()) then
|
if pfUI.api.UnitInRange(this.label .. this.id, 4) or (pfUI.gitter and pfUI.gitter:IsShown()) then
|
||||||
|
|||||||
Reference in New Issue
Block a user