mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 08:30:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user