possible fix for libpredict to not show resses that are canceled.

possible fix for libpredict to not show resses that are canceled.
This commit is contained in:
Meow
2026-02-20 19:03:28 +01:00
parent 6f28fb3730
commit 947b11f918
2 changed files with 103 additions and 105 deletions
+14
View File
@@ -1289,6 +1289,13 @@ if hasNampower then
carnageCheckFrame:Show()
end
end
-- Forward to registered callbacks (e.g. libpredict)
if pfUI.libdebuff_spell_go_callbacks then
for _, cb in pairs(pfUI.libdebuff_spell_go_callbacks) do
cb(spellId, spellName, castRank, casterGuid, targetGuid, event == "SPELL_GO_SELF")
end
end
elseif event == "SPELL_FAILED_OTHER" then
local casterGuid = arg1
@@ -1296,6 +1303,13 @@ if hasNampower then
if casterGuid and pfUI.libdebuff_casts[casterGuid] then
pfUI.libdebuff_casts[casterGuid] = nil
end
-- Forward to registered callbacks (e.g. libpredict)
if pfUI.libdebuff_spell_failed_other_callbacks then
for _, cb in pairs(pfUI.libdebuff_spell_failed_other_callbacks) do
cb(casterGuid)
end
end
elseif event == "SPELL_CAST_EVENT" then
-- Capture combo points BEFORE they're consumed