diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua index 0fa1048..3771a68 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua @@ -305,7 +305,12 @@ do G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" ) - local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER ) + local maxHolyPower + if( S.level == MAX_PLAYER_LEVEL ) then + maxHolypower = 5 + else + maxHolyPower = 3 + end for i = 1, maxHolyPower do G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua index 2be78c7..8f82fd9 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua @@ -309,7 +309,12 @@ do G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" ) - local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER ) + local maxHolyPower + if( S.level == MAX_PLAYER_LEVEL ) then + maxHolypower = 5 + else + maxHolyPower = 3 + end for i = 1, maxHolyPower do G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua index 27a7e5e..450ca7d 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua @@ -309,7 +309,12 @@ do G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" ) - local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER ) + local maxHolyPower + if( S.level == MAX_PLAYER_LEVEL ) then + maxHolypower = 5 + else + maxHolyPower = 3 + end for i = 1, maxHolyPower do G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua index 977ca56..c29552e 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua @@ -304,7 +304,12 @@ do G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" ) - local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER ) + local maxHolyPower + if( S.level == MAX_PLAYER_LEVEL ) then + maxHolypower = 5 + else + maxHolyPower = 3 + end for i = 1, maxHolyPower do G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua index 3ccd265..4f48389 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua @@ -306,11 +306,15 @@ do G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" ) - local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER ) + local maxHolyPower + if( S.level == MAX_PLAYER_LEVEL ) then + maxHolypower = 5 + else + maxHolyPower = 3 + end for i = 1, maxHolyPower do G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) - if( maxHolyPower == 3 ) then for i = 1, 3 do G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 3 ), 2 )