WoW LibInstantHealth addon Dragonflight/Wrath of the Lich King Classic 2022
wow addon LibInstantHealth


Game Version: 1.13.4
Total Downloads: 465
Updated: Jul 28, 2020
Created: Jan 10, 2020
download LibInstantHealthDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
v6 release 10.53 KB Jul 28, 2020 1.13.4 0 download LibInstantHealth v6 releaseDownload
v5 release 10.30 KB Jun 22, 2020 1.13.4 127 download LibInstantHealth v5 releaseDownload
v4 release 10.85 KB Mar 14, 2020 1.13.4 188 download LibInstantHealth v4 releaseDownload
v3 release 10.86 KB Mar 7, 2020 1.13.3 64 download LibInstantHealth v3 releaseDownload
v2 release 10.87 KB Feb 24, 2020 1.13.3 55 download LibInstantHealth v2 releaseDownload
v1 release 10.78 KB Feb 15, 2020 1.13.3 31 download LibInstantHealth v1 releaseDownload


Share this:


Library for instant health updates via combat log. Only group members; other units do not receive instant updates.

Because of technical limitations melee auto attack damage is not instant.


local InstantHealth = LibStub("LibInstantHealth-1.0")

Use InstantHealth.UnitHealth(unit) where you would use UnitHealth(unit), InstantHealth.UnitHealthMax(unit) where you would use UnitHealthMax(unit), and instead of

frame:SetScript("OnEvent", onEvent)


frame:RegisterUnitEvent(event, unit1, unit2)


register the events like this

InstantHealth.RegisterCallback(frame, event, onEvent, frame)

InstantHealth.RegisterCallback(frame, event, function (self, event, unit)
if unit == unit1 or unit == unit2 then
onEvent(self, event, unit)
end, frame)

InstantHealth.UnregisterCallback(frame, event)


UNIT_HEALTH, UNIT_MAXHEALTH and UNIT_HEALTH_FREQUENT events fire when they normally would; additionally, UNIT_HEALTH_FREQUENT is fired when the health is updated via combat log events.

Because of the potentially large number of UNIT_HEALTH_FREQUENT events, it is recommended to update health bars etc. in OnUpdate if necessary, and not on each UNIT_HEALTH_FREQUENT event.

It is not recommended to use InstantHealth.UnitHealth(unit) and InstantHealth.UnitHealthMax(unit) within event handlers of Blizzard's UNIT_HEALTH, UNIT_MAXHEALTH, UNIT_HEALTH_FREQUENT, and COMBAT_LOG_EVENT/COMBAT_LOG_EVENT_UNFILTERED.


Add a comment