From dd84ca0f66a9707e9c01322f2ba1d3a83b88bc4c Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Fri, 28 Nov 2025 21:56:55 -0500 Subject: [PATCH] fix boss level as level 63 and fix partial block resists --- Conditionals.lua | 11 ++++++++++- Utility.lua | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Conditionals.lua b/Conditionals.lua index 7e5bf45..17edb81 100644 --- a/Conditionals.lua +++ b/Conditionals.lua @@ -429,6 +429,11 @@ function CleveRoids.ValidateLevel(unit, operator, amount) if not unit or not operator or not amount then return false end local level = UnitLevel(unit) + -- Treat skull/boss mobs (??) as level 63 + if level == -1 then + level = 63 + end + if level and CleveRoids.operators[operator] then return CleveRoids.comparators[operator](level, amount) end @@ -2041,7 +2046,11 @@ CleveRoids.Keywords = { local unit = conditionals.target or "target" if not UnitExists(unit) then return false end local level = UnitLevel(unit) - if level == -1 then return false end -- Boss/unknown level + + -- Treat skull/boss mobs (??) as level 63 + if level == -1 then + level = 63 + end -- ALL comparisons must pass (AND logic) for _, comp in ipairs(args.comparisons) do diff --git a/Utility.lua b/Utility.lua index fa8de7e..2ff21a8 100644 --- a/Utility.lua +++ b/Utility.lua @@ -3243,14 +3243,17 @@ end -- Register combat log event for reactive proc tracking -- PERFORMANCE: Removed CHAT_MSG_SPELL_SELF_DAMAGE (fires on every spell hit - not needed for dodge/parry/block) +-- CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS is needed for partial block detection (Revenge) local reactiveFrame = CreateFrame("Frame", "CleveRoidsReactiveFrame") reactiveFrame:RegisterEvent("RAW_COMBATLOG") reactiveFrame:RegisterEvent("CHAT_MSG_COMBAT_SELF_MISSES") reactiveFrame:RegisterEvent("CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES") +reactiveFrame:RegisterEvent("CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS") reactiveFrame:SetScript("OnEvent", function() if event == "RAW_COMBATLOG" or event == "CHAT_MSG_COMBAT_SELF_MISSES" or - event == "CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES" then + event == "CHAT_MSG_COMBAT_CREATURE_VS_SELF_MISSES" or + event == "CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS" then CleveRoids.ParseReactiveCombatLog() end end)