From b56a4e29425240d908dd0538aa0de6a7fb008c94 Mon Sep 17 00:00:00 2001 From: Andrew6810 <16847730+andrew6180@users.noreply.github.com> Date: Sun, 6 Nov 2022 16:11:01 -0700 Subject: [PATCH] Fix lua error if below max level --- ElvUI_Enhanced/Modules/Blizzard/CharacterFrame.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_Enhanced/Modules/Blizzard/CharacterFrame.lua b/ElvUI_Enhanced/Modules/Blizzard/CharacterFrame.lua index 7bcc491..764c4a8 100644 --- a/ElvUI_Enhanced/Modules/Blizzard/CharacterFrame.lua +++ b/ElvUI_Enhanced/Modules/Blizzard/CharacterFrame.lua @@ -908,7 +908,7 @@ function module:PvEPower(statFrame, unit) text = text .. format("\nIncreases healing done and absorption in |cffFFFFFFinstances|r by: |cffFFFFFF%s%%|r", PVE_POWER * PVE_POWER_HEALING_MULTIPLIER) if UnitLevel("player") < GetMaxLevel() then - text = text .. "\n" .. format(DOES_NOT_APPLY_BELOW_LEVEL_FORMAT, GetMaxLevel()) + text = text .. "\n" .. format("|cffFF0000Does not apply below level: %d|r", GetMaxLevel()) end statFrame.tooltip2 = text @@ -925,7 +925,7 @@ function module:PvPPower(statFrame, unit) text = text .. format("\nWhile your Primary Stat is |cffFFFFFFSpirit|r your healing and absorption in |cffFFFFFFArenas and Battlegrounds|r is increased by: |cffFFFFFF%s%%|r", PVP_POWER * PVP_POWER_DAMAGE_MULTIPLIER) if UnitLevel("player") < GetMaxLevel() then - text = text .. "\n" .. format(DOES_NOT_APPLY_BELOW_LEVEL_FORMAT, GetMaxLevel()) + text = text .. "\n" .. format("|cffFF0000Does not apply below level: %d|r", GetMaxLevel()) end statFrame.tooltip2 = text