From d66915822168a58a2f3cc04b809964e8fe6e4672 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 2 May 2022 16:41:29 -0300 Subject: [PATCH] Make line border color use alpha from its fixed color even when using color by the player class --- classes/class_damage.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 6490aa3b..13b63371 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -2987,7 +2987,9 @@ end end if (instance.row_info.backdrop.use_class_colors) then - bar.lineBorder:SetVertexColor(r, g, b, a) + --get the alpha from the border color + local alpha = instance.row_info.backdrop.color[4] + bar.lineBorder:SetVertexColor(r, g, b, alpha) end end