From d653c76e3780d87ad4a9ca26a6946030aebeb072 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Tue, 22 Jun 2021 12:04:59 +0200 Subject: [PATCH] stealth unit when rangecheck disabled --- Modules/RangeCheck.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/RangeCheck.lua b/Modules/RangeCheck.lua index 8a0b26b..1dd2abd 100644 --- a/Modules/RangeCheck.lua +++ b/Modules/RangeCheck.lua @@ -185,9 +185,15 @@ function RangeCheck:ENEMY_STEALTH(unit, stealth) button.lastState = 0 if stealth then button.classColors = { r = 0.66, g = 0.66, b = 0.66 } + if not Gladdy.db.rangeCheckEnabled then + button.healthBar.hp:SetStatusBarColor(0.66, 0.66, 0.66, 1) + end else if button.class then button.classColors = { r = RAID_CLASS_COLORS[button.class].r, g = RAID_CLASS_COLORS[button.class].g, b = RAID_CLASS_COLORS[button.class].b } + if not Gladdy.db.rangeCheckEnabled then + button.healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1) + end end end end