Skip to content

Commit 6ad1805

Browse files
committed
give this a variable
1 parent f8735d4 commit 6ad1805

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ElvUI/Core/Modules/DataTexts/ManaRegen.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ local displayString, db = ''
1313

1414
local function OnEvent(self)
1515
local baseMR, castingMR = GetManaRegen()
16+
local manaRegen = (InCombatLockdown() and castingMR or baseMR) * 5
1617

1718
if db.NoLabel then
18-
self.text:SetFormattedText(displayString, (InCombatLockdown() and castingMR or baseMR) * 5)
19+
self.text:SetFormattedText(displayString, manaRegen)
1920
else
20-
self.text:SetFormattedText(displayString, db.Label ~= '' and db.Label or MANA_REGEN..': ', (InCombatLockdown() and castingMR or baseMR) * 5)
21+
self.text:SetFormattedText(displayString, db.Label ~= '' and db.Label or MANA_REGEN..': ', manaRegen)
2122
end
2223
end
2324

0 commit comments

Comments
 (0)