fix boss level as level 63 and fix partial block resists

This commit is contained in:
Jrc13245
2025-11-28 21:56:55 -05:00
parent d59ccc0821
commit dd84ca0f66
2 changed files with 14 additions and 2 deletions
+10 -1
View File
@@ -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
+4 -1
View File
@@ -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)