mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
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.
This commit is contained in:
+2
-2
@@ -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.
|
-- Discard pending and trust the actual targetGuid from SPELL_START_SELF.
|
||||||
if pending.targetGuid == targetGuid then
|
if pending.targetGuid == targetGuid then
|
||||||
local name = UnitName(pending.targetGuid)
|
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
|
pendingTarget = name
|
||||||
pendingTargetGuid = pending.targetGuid
|
pendingTargetGuid = pending.targetGuid
|
||||||
end
|
end
|
||||||
@@ -1222,7 +1222,7 @@ libpredict.sender:SetScript("OnEvent", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
function libpredict:GetHotDuration(unit, spell)
|
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)
|
-- NEW: Try libdebuff first (Nampower AURA_CAST events)
|
||||||
if pfUI.api.libdebuff and pfUI.api.libdebuff.GetBestAuraCast then
|
if pfUI.api.libdebuff and pfUI.api.libdebuff.GetBestAuraCast then
|
||||||
|
|||||||
Reference in New Issue
Block a user