From cbc8d3e250b4c9a47c6c133f9630c8f794a82d02 Mon Sep 17 00:00:00 2001 From: EsreverWoW Date: Wed, 15 Sep 2021 11:54:37 -0500 Subject: [PATCH] [LibHealComm] Fix in case LHC is used on Classic Era realms --- ShestakUI/Libs/LibHealComm-4.0/LibHealComm-4.0.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ShestakUI/Libs/LibHealComm-4.0/LibHealComm-4.0.lua b/ShestakUI/Libs/LibHealComm-4.0/LibHealComm-4.0.lua index 933d80969..8f85e883a 100644 --- a/ShestakUI/Libs/LibHealComm-4.0/LibHealComm-4.0.lua +++ b/ShestakUI/Libs/LibHealComm-4.0/LibHealComm-4.0.lua @@ -1,7 +1,7 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then return end local major = "LibHealComm-4.0" -local minor = 99 +local minor = 100 assert(LibStub, format("%s requires LibStub.", major)) local HealComm = LibStub:NewLibrary(major, minor) @@ -1143,7 +1143,9 @@ if( playerClass == "PRIEST" ) then hotData[Renew] = {coeff = 1, interval = 3, ticks = 5, levels = {8, 14, 20, 26, 32, 38, 44, 50, 56, 60, 65, 70}, averages = { 45, 100, 175, 245, 315, 400, 510, 650, 810, 970, 1010, 1110 }} hotData[GreaterHealHot] = hotData[Renew] - hotData[Renewal] = {coeff = 0, interval = 3, ticks = 3, levels = {70}, averages = {150}} + if isTBC then -- prevent error on Classic Era realms + hotData[Renewal] = {coeff = 0, interval = 3, ticks = 3, levels = {70}, averages = {150}} + end spellData[FlashHeal] = {coeff = 1.5 / 3.5, levels = {20, 26, 32, 38, 44, 50, 56, 61, 67}, averages = { {avg(193, 237), avg(194, 239), avg(196, 241), avg(198, 243), avg(200, 245), avg(202, 247)},