mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix boss level as level 63 and fix partial block resists
This commit is contained in:
+10
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user