mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix pounce immunity detection, stale carnage duration override bug, and immune conditionals
This commit is contained in:
@@ -5081,6 +5081,20 @@ function CleveRoids.ResolveMultiscanTarget(conditionals, specifiedUnit)
|
||||
if not guid or seenGuids[guid] then return end
|
||||
seenGuids[guid] = true
|
||||
|
||||
-- Cache GUID -> name mapping for immunity checks
|
||||
-- This is needed because immune enemies may never have debuffs tracked,
|
||||
-- but we still need their name for immunity lookups
|
||||
local unitName = UnitName(unit)
|
||||
if unitName and unitName ~= "" and unitName ~= "Unknown" then
|
||||
local lib = CleveRoids.libdebuff
|
||||
if lib and lib.guidToName then
|
||||
local normalizedGuid = CleveRoids.NormalizeGUID(guid)
|
||||
if normalizedGuid then
|
||||
lib.guidToName[normalizedGuid] = unitName
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local score = CleveRoids.GetMultiscanScore(unit, priorityType, currentTargetGuid, specifiedUnitGuid)
|
||||
if not score then return end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user