mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
prediction: check for valid label and id
This commit is contained in:
@@ -152,7 +152,7 @@ pfUI:RegisterModule("prediction", function ()
|
||||
OVERHEALPERCENT = OVERHEALPERCENT or 20
|
||||
|
||||
for id, frame in _G.pfUI.uf.frames do
|
||||
if frame:IsVisible() then
|
||||
if frame:IsVisible() and frame.label and frame.id then
|
||||
local unit = frame.label .. frame.id
|
||||
local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user