From b6931359b061b88162760f2fa5eca3a547ef64db Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 10 Aug 2026 01:11:19 -0500 Subject: [PATCH] Use the real UKNOWNBEING global in libpredict guards The 1.12 client defines Blizzard's own misspelling, UKNOWNBEING ("Unknown Being"); UNKNOWNBEING does not exist and resolves to nil, so both guards never matched. Point them at the real global. --- libs/libpredict.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index 5fae50c3..56ddf3d1 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -140,7 +140,7 @@ pfUI.libdebuff_spell_start_self_hooks["libpredict"] = function(spellId, casterGu -- Discard pending and trust the actual targetGuid from SPELL_START_SELF. if pending.targetGuid == targetGuid then local name = UnitName(pending.targetGuid) - if name and name ~= UNKNOWNOBJECT and name ~= UNKNOWNBEING then + if name and name ~= UNKNOWNOBJECT and name ~= UKNOWNBEING then pendingTarget = name pendingTargetGuid = pending.targetGuid end @@ -1222,7 +1222,7 @@ libpredict.sender:SetScript("OnEvent", function() end) function libpredict:GetHotDuration(unit, spell) - if unit == UNKNOWNOBJECT or unit == UNKNOWNBEING then return end + if unit == UNKNOWNOBJECT or unit == UKNOWNBEING then return end -- NEW: Try libdebuff first (Nampower AURA_CAST events) if pfUI.api.libdebuff and pfUI.api.libdebuff.GetBestAuraCast then