From 822277e281810db2b99184d31c966dc5f1ab2ebe Mon Sep 17 00:00:00 2001 From: Kyle Buller Date: Sun, 19 Jul 2020 00:28:54 -0500 Subject: [PATCH] LuaTexts: Map UNIT_HEALTH_FREQUENT to UNIT_HEALTH --- Modules/LuaTexts/LuaTexts.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/LuaTexts/LuaTexts.lua b/Modules/LuaTexts/LuaTexts.lua index 916285d2..82c0f4fe 100755 --- a/Modules/LuaTexts/LuaTexts.lua +++ b/Modules/LuaTexts/LuaTexts.lua @@ -1,3 +1,4 @@ +local wow_900 = select(4, GetBuildInfo()) > 90000 local PitBull4 = _G.PitBull4 local L = PitBull4.L @@ -696,6 +697,9 @@ local protected_events = { -- continue to work transparently to end users. local compat_event_map = {} compat_event_map.UNIT_POWER = 'UNIT_POWER_UPDATE' +if wow_900 then + compat_event_map.UNIT_HEALTH_FREQUENT = 'UNIT_HEALTH' +end compat_event_map.UNIT_HEALTHMAX = 'UNIT_MAXHEALTH' compat_event_map.UNIT_MANA = 'UNIT_POWER_FREQUENT' compat_event_map.UNIT_MAXMANA = 'UNIT_MAXPOWER'