Skip to content

Commit

Permalink
LuaTexts: Map UNIT_HEALTH_FREQUENT to UNIT_HEALTH
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jul 19, 2020
1 parent be54434 commit 822277e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/LuaTexts/LuaTexts.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local wow_900 = select(4, GetBuildInfo()) > 90000

local PitBull4 = _G.PitBull4
local L = PitBull4.L
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 822277e

Please sign in to comment.