From 0abb7b9929a6b16c665e59297c7989de880ecae8 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Thu, 2 Apr 2026 14:24:01 +0200 Subject: [PATCH] Revert "added downrank check for hooks" This reverts commit 79d0a401c95771c3701dcac46f5670068d888e0f. --- libs/libdebuff.lua | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index ccb42bdc..a1f6d086 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -1342,33 +1342,13 @@ if hasNampower then end -- Store in pendingCasts for DEBUFF_ADDED correlation - -- Downrank protection: don't write pending if a higher rank is still active. - -- Without this check SuperCleveRoid (and other hook consumers) would see the - -- spell as "pending" even though libdebuff will later block the actual update. if targetGuid then pendingCasts[targetGuid] = pendingCasts[targetGuid] or {} - local pendingBlocked = false - if castRank > 0 then - local existingOwn = ownDebuffs[targetGuid] and ownDebuffs[targetGuid][spellName] - if existingOwn and existingOwn.rank and existingOwn.rank > castRank then - local existingTimeleft = (existingOwn.startTime + existingOwn.duration) - GetTime() - if existingTimeleft > 0 then - pendingBlocked = true - if debugStats.enabled then - DEFAULT_CHAT_FRAME:AddMessage(string.format( - "|cffff0000[PENDING BLOCKED]|r %s: Rank %d cannot enter pending (Rank %d active, %.1fs left)", - spellName, castRank, existingOwn.rank, existingTimeleft)) - end - end - end - end - if not pendingBlocked then - pendingCasts[targetGuid][spellName] = { - casterGuid = casterGuid, - rank = castRank, - time = GetTime() - } - end + pendingCasts[targetGuid][spellName] = { + casterGuid = casterGuid, + rank = castRank, + time = GetTime() + } end -- selfdebuff mode: write ownDebuffs immediately on confirmed hit