DeathNotificationLib

Death notification and tracking library for Hardcore WoW.
Back to Files

DeathNotificationLib v33

File nameDeathNotificationLib.zip
Uploaded
Nov 18, 2026
Downloads
22.1K
Size
5.0 MB
Flavors
Classic TBCClassicForever
File ID
9687832
Type
R
Release
Supported game versions
  • 2.5.6
  • 1.60.1
  • 1.15.9

What's new

V33 — 2026-11-18

New Features

  • Local-only deaths for attached addons. An addon can pass isUnitRecordedLocally to AttachAddon to receive the player's own death when no attached addon tracks it. The death goes only to that addon, with the new source SOURCE.LOCAL_SELF and extra_data.m = "n". It is never broadcast, cached, synced or shown as an alert. Addons that do not pass the option see no change.
  • Addons can narrow their sync window. AttachAddon takes an optional syncWindowDays(days) callback. Given the configured window (-1 = all), it returns a smaller one (1-30 days) that the addon's watermarks and bucket requests use; wider or invalid results are ignored. Responders already stream only the requester's window, so a narrowed client is never sent older days, from V32 responders too.

Bug Fixes

  • WoW Forever: no blocked sends in battlegrounds, dungeons and raids. Forever blocks addon chat messages while chat is locked down there. The library no longer tries to send to its channels then, which raised "AddOn tried to call the protected function"; sync requests that arrive meanwhile are ignored, and version announces go out when you leave instead of being lost.
  • One death, one report. The client can fire PLAYER_DEAD a second time for the same death, about a second after the first (seen on Forever). The library handled each event as a new death, so HookOnSelfDeath hooks ran twice; the broadcast itself was already deduplicated. A repeat within 10 seconds is now ignored while the player has stayed dead; after a resurrection, the next death is reported as usual.
  • WoW Forever: no errors from hidden values in instances. Forever hides some values from addons inside instances, such as creature names, GUIDs and health, and can hide chat text. The library no longer compares or parses a hidden value. Party and raid deaths are detected through UnitIsDeadOrGhost when health is hidden, so they are reported again. The death-recap killer is kept when its name or its GUID can be read and is recorded as unknown when neither can. Hidden chat, channel and Blizzard death messages are skipped. Clients without hidden values behave as before.
  • Sync backs off when a session brings nothing. A client whose window is smaller than a peer's always looked behind and started a new session every cooldown, even when it already had everything. A session that adds no entry to the addon's database now doubles that addon's cooldown, counting from at least 300 s (600 s, 1,200 s, 2,400 s, at most one hour); the next session that adds an entry resets it.
  • Settings use their documented defaults again. Since V13 a missing peer_reporting, auto_blizzard_deaths or auto_hide_chat_channels counted as off, so an addon whose saved settings never stored them got no peer-reported deaths, never joined HardcoreDeaths and left the library's channels in the chat frames. All defaults now live in one table, and a missing key, or a missing settings table, means its default. Saved values are kept, and the library writes nothing into an addon's settings. The shared settings (peer_reporting, legacy_messages, auto_blizzard_deaths, auto_hide_chat_channels) are on when any attached addon with a settings table has them on. An addon that attaches without settings no longer counts toward them; the defaults apply only when no attached addon has settings. The first HardcoreDeaths join and channel hiding after login wait one frame, so addons that attach during PLAYER_ENTERING_WORLD count.
  • Legacy messages are off by default. legacy_messages now defaults to false. It was documented as on and has been read as off since V13. Addons that want v0-v2 messages set it to true.
  • sync_enabled = false is respected per addon. Entries other clients stream on the sync channel were still written into an addon that turned sync off while another attached addon had sync on, even one without a database. HardcoreTBC history imports ignored the setting as well. Neither happens now, and an addon without a database no longer keeps the passive sync gate open.
  • Peer reports reach the owner's alert filter unchanged. The death alert for a peer report was handed a copy with reported_by added, so an alertFilter that recognises entries by table, as Deathlog's does, never matched it and suppressed the alert. playDeathAlert(entry, reported_by) now takes the reporter separately, and the filter sees the entry the owner's hook received.

This mod has no additional files