health update

Fixed raid markers to update health on more events (health and maxhealth)
This commit is contained in:
Meow
2026-02-22 19:32:25 +01:00
parent 236a2fce6c
commit 1417ec6d04
+3
View File
@@ -287,8 +287,11 @@ pfUI:RegisterModule("raidmarkers", "vanilla:tbc", function ()
-- RAID_TARGET_UPDATE: fires when a raid marker is set/cleared
-- PLAYER_ENTERING_WORLD: fires on login, reload, and zone transitions
-- UNIT_HEALTH/UNIT_MAXHEALTH: fires on HP changes for real-time bar updates
scanner:RegisterEvent("RAID_TARGET_UPDATE")
scanner:RegisterEvent("PLAYER_ENTERING_WORLD")
scanner:RegisterEvent("UNIT_HEALTH")
scanner:RegisterEvent("UNIT_MAXHEALTH")
scanner:SetScript("OnEvent", function()
UpdateDisplay()