From: Aleksi Blinnikka Date: Tue, 25 Aug 2020 20:52:52 +0000 (+0300) Subject: Holy Power for all paladin specs X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/7250c45be5f7f5842cec5e041b4a2ce281b904ac Holy Power for all paladin specs --- diff --git a/OmaPower/AltPower.lua b/OmaPower/AltPower.lua index 9ea3609..48a8036 100644 --- a/OmaPower/AltPower.lua +++ b/OmaPower/AltPower.lua @@ -19,14 +19,9 @@ local updatehp = { }; function f:PLAYER_SPECIALIZATION_CHANGED() if class == "PALADIN" then - if GetSpecialization() == 3 then -- ret - f:Show(); - f:RegisterUnitEvent("UNIT_POWER_UPDATE", "player"); - updatehp[UnitPower("player", ptype)](); - else - f:UnregisterEvent("UNIT_POWER_UPDATE"); - f:Hide(); - end + f:Show(); + f:RegisterUnitEvent("UNIT_POWER_UPDATE", "player"); + updatehp[UnitPower("player", ptype)](); elseif class == "WARLOCK" then f:Show(); f:RegisterUnitEvent("UNIT_POWER_UPDATE", "player");