Skip to content

Commit

Permalink
regen tick classic only
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Apr 30, 2024
1 parent 6e7f17a commit 19487ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ElvUI/Core/Modules/UnitFrames/Units/Player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function UF:Construct_PlayerFrame(frame)
frame.EclipseBar = UF:Construct_DruidEclipseBar(frame)
end

if not E.Retail and E.myclass ~= 'WARRIOR' then
if E.Classic and E.myclass ~= 'WARRIOR' then
frame.EnergyManaRegen = UF:Construct_EnergyManaRegen(frame)
end

Expand Down Expand Up @@ -135,7 +135,7 @@ function UF:Update_PlayerFrame(frame, db)
UF:Configure_Castbar(frame)
UF:Configure_Fader(frame)

if not E.Retail and E.myclass ~= 'WARRIOR' then
if E.Classic and E.myclass ~= 'WARRIOR' then
UF:Configure_EnergyManaRegen(frame)
end

Expand Down
2 changes: 1 addition & 1 deletion ElvUI_Options/Core/UnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ local function GetOptionsTable_Power(hasDetatchOption, updateFunc, groupName, nu
config.args.displayAltPower = ACH:Toggle(L["Swap to Alt Power"], nil, 9)
end

if groupName == 'player' then
if E.Classic and groupName == 'player' then
config.args.EnergyManaRegen = ACH:Toggle(L["Energy/Mana Regen Tick"], L["Enables the five-second-rule ticks for Mana classes and Energy ticks for Rogues and Druids."], 7, nil, nil, nil, nil, nil, nil, E.Retail)
end

Expand Down

0 comments on commit 19487ae

Please sign in to comment.