Commit 637b064f authored by Ivaria's avatar Ivaria
Browse files

Listen to UNIT_HEALTH_FREQUENT events for health updates

parent aca4d4c6
......@@ -452,7 +452,7 @@ function VUHDO_OnEvent(_, anEvent, anArg1, anArg2, anArg3, anArg4, anArg5, anArg
VUHDO_updateBouquetsForEvent(anArg1, 4); -- VUHDO_UPDATE_DEBUFF
end
elseif "UNIT_HEALTH" == anEvent then
elseif "UNIT_HEALTH" == anEvent or "UNIT_HEALTH_FREQUENT" == anEvent then
-- as of patch 7.1 we are seeing empty units on health related events
if anArg1 and ((VUHDO_RAID or tEmptyRaid)[anArg1] or VUHDO_isBossUnit(anArg1)) then
VUHDO_updateHealth(anArg1, 2);
......@@ -1509,7 +1509,7 @@ end
local VUHDO_ALL_EVENTS = {
"VARIABLES_LOADED", "PLAYER_ENTERING_WORLD",
"UNIT_MAXHEALTH", "UNIT_HEALTH",
"UNIT_MAXHEALTH", "UNIT_HEALTH", "UNIT_HEALTH_FREQUENT",
"UNIT_AURA",
"UNIT_TARGET",
"GROUP_ROSTER_UPDATE", "INSTANCE_ENCOUNTER_ENGAGE_UNIT", "UPDATE_ACTIVE_BATTLEFIELD",
......
......@@ -347,6 +347,7 @@ local VUHDO_BLIZZ_EVENTS = {
"UNIT_FLAGS",
"UNIT_HEAL_PREDICTION",
"UNIT_HEALTH",
"UNIT_HEALTH_FREQUENT",
"UNIT_LEVEL",
"UNIT_MAXHEALTH",
"UNIT_MAXPOWER",
......@@ -379,6 +380,7 @@ local VUHDO_FIX_EVENTS = {
"UNIT_COMBAT",
"UNIT_HEAL_PREDICTION",
"UNIT_HEALTH",
"UNIT_HEALTH_FREQUENT",
"UNIT_MAXHEALTH",
"UNIT_MAXPOWER",
"UNIT_PET",
......
......@@ -19,6 +19,7 @@ Bugfixes:
Improvements:
-- Migrated to built-in APIs/events for incoming healing
-- Added option to use incoming healing from LibHealComm
-- Listen to UNIT_HEALTH_FREQUENT events for health updates
--------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment