diff --git a/FreshShit/RaiderlosSA/color.lua b/FreshShit/RaiderlosSA/color.lua new file mode 100644 index 0000000..a70997e --- /dev/null +++ b/FreshShit/RaiderlosSA/color.lua @@ -0,0 +1,28 @@ +function() + local target = aura_env.state.target + + for _, subregion in ipairs(aura_env.region.subRegions) do + if aura_env.config.borderColor then + if subregion.type == "subborder" then + ---@type ClassColor + local classColorInfo = ClassColors[aura_env.state.targetClassId] + if classColorInfo then + local color = classColorInfo.color.rgbInt + subregion:SetBorderColor(color[1] / 255, color[2] / 255, color[3] / 255, 1) + end + end + end + if target and target == PlayerName then + if aura_env.config.glow then + if subregion.type == "subglow" then + subregion:SetVisible(true) + end + end + end + end + + if target and target == PlayerName then + return 1, 0, 0, 1 + end + return 0, 0, 1, 1 +end diff --git a/FreshShit/RaiderlosSA/event.lua b/FreshShit/RaiderlosSA/event.lua index d970b2b..c0aeae6 100644 --- a/FreshShit/RaiderlosSA/event.lua +++ b/FreshShit/RaiderlosSA/event.lua @@ -11,7 +11,7 @@ function(allstates, e, ...) if eventMap == nil then return end local alert = eventMap[spellId] if alert == nil then return end - + alert:Trigger(allstates, ...) return true end