fix pfui libdebuff and extra overflowframe tracking

This commit is contained in:
Jrc13245
2026-04-02 15:02:50 -04:00
parent fbbbb1fcce
commit e51c4f7136
4 changed files with 100 additions and 19 deletions
+19
View File
@@ -789,6 +789,25 @@ function Extension.PLAYER_LOGIN()
end
end
-- Register libdebuff downrank blocked hook now that pfUI is fully initialized.
-- Done here (not in Core.lua PLAYER_LOGIN) because pfUI.libdebuff_downrank_blocked_hooks
-- is only guaranteed to exist after InitPfUIIntegration has run.
if pfUI and pfUI.libdebuff_downrank_blocked_hooks then
table.insert(pfUI.libdebuff_downrank_blocked_hooks, function(spellName, castRank, activeRank, targetGuid, casterGuid)
local playerGuid = CleveRoids.GetGUID("player")
if casterGuid ~= playerGuid then return end
CleveRoids.DownrankBlocked[targetGuid] = CleveRoids.DownrankBlocked[targetGuid] or {}
CleveRoids.DownrankBlocked[targetGuid][spellName] = {
castRank = castRank,
activeRank = activeRank,
time = GetTime()
}
CleveRoids.DebugChanged("downrank_hook_" .. spellName .. "_" .. tostring(targetGuid),
string.format("|cffff0000[DownrankBlocked]|r %s Rank %d blocked by active Rank %d",
spellName, castRank, activeRank))
end)
end
-- Final check after everything is loaded
Extension.SetupCompatibility()