From 43157e64b1540e4b633423a3523f7d031b60de61 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Sun, 25 Mar 2018 21:03:49 +0300 Subject: [PATCH 1/1] Add different alt power color for Warlock --- OmaPower/AltPower.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OmaPower/AltPower.lua b/OmaPower/AltPower.lua index 5ab7742..eeb2c42 100644 --- a/OmaPower/AltPower.lua +++ b/OmaPower/AltPower.lua @@ -65,9 +65,12 @@ function f:PLAYER_LOGIN() end f[i]:SetWidth(25); f[i]:SetHeight(25); - -- color is default from SHP - -- TODO different for different classes - f[i]:SetColorTexture(0.9686274509803922, 0.674509803921568, 0.1450980392156863); + if class == "WARLOCK" then + f[i]:SetColorTexture(0.7, 0.3, 0.5); + else + -- color is default from SHP + f[i]:SetColorTexture(0.9686274509803922, 0.674509803921568, 0.1450980392156863); + end end f:RegisterUnitEvent("UNIT_POWER", "player"); -- 2.39.5