From 532f1c7e57ad336d3f54f0f64e8af961045beda4 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 4 Nov 2024 15:26:24 +0100 Subject: [PATCH] libpredict: skip aura updates on disabled unitframes --- libs/libpredict.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index 4c9d91a1..a335fbfc 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -184,9 +184,11 @@ function libpredict:Hot(sender, target, spell, duration) hots[target][spell].start = GetTime() -- update aura events of relevant unitframes - for _, frame in pairs(pfUI.uf.frames) do - if frame.namecache == target then - frame.update_aura = true + if pfUI and pfUI.uf and pfUI.uf.frames then + for _, frame in pairs(pfUI.uf.frames) do + if frame.namecache == target then + frame.update_aura = true + end end end end