LibCombatPulse: Shared Combat Event Bus for WoW Addons

LibCombatPulse gives World of Warcraft addons a shared combat event bus, so multiple addons consume normalized events without direct dependencies.

Download LibCombatPulse for World of Warcraft 12.0.1

Original name: LibCombatPulse

World of Warcraft: 12.0.1

FileVersionLoaderSize
LibCombatPulse-1.0.zip12.0.1—4 КБDownload

LibCombatPulse

If you develop or configure World of Warcraft addons, you have probably run into the same wall: two addons both want to know when a spell lands, a cooldown finishes, or a cast gets interrupted, but neither wants to depend on the other. LibCombatPulse solves that problem by acting as a shared combat event bus. It is a lightweight library in the classic LibStub style that lets addons publish and consume normalized combat, progress, and utility events without hard dependencies between them.

This copy ships as a standalone addon called LibCombatPulse-1.0, and it can also be embedded inside other addons. That dual nature makes it flexible whether you are building a damage meter, a proc tracker, or a simple combat log overlay.

What LibCombatPulse Actually Does

At its core, the library is a dispatcher, not a parser. Producers decide what to emit and how confident they are in the data. Consumers register through NewConsumer() and receive normalized event tables. Because the library normalizes basic fields such as kind and timestamp, every consumer works with a predictable structure even when the underlying data comes from different producers.

Key features at a glance

  • Multiple consumers: any addon can register one or more consumers via NewConsumer().
  • Event filtering: narrow events by confidence and by categories, kinds, direction, or event type.
  • Consumer safety: events are shallow-copied per consumer by default (copyEvent=true), which prevents cross-consumer mutation bugs.
  • Schema normalization: Emit() fills in and normalizes fields like kind and timestamp.
  • Versioning through LibStub: the MAJOR version is LibCombatPulse-1.0, and LibStub keeps the newest MINOR version loaded.

Why a Shared Event Bus Matters

Most combat data in World of Warcraft arrives through fragmented channels: combat log events, combat text, cooldown APIs, and unit auras. Each addon tends to build its own interpretation. LibCombatPulse flips that model. One producer emits a normalized event, and any number of consumers subscribe. A consumer can ask for only high-confidence outgoing damage, or only interrupt events, or only cooldown-ready signals, and ignore everything else.

The event contract stays practical rather than rigid. Required fields are minimal: kind as a string such as damage, heal, miss, aura_gain, aura_fade, interrupt, cast_stop, cooldown_ready, xp, honor, or reputation, plus a timestamp in seconds from GetTime() that is filled automatically if missing. Optional fields cover the rest: eventType, direction, spellId, spellName, targetName, amount, amountText, and confidence at LOW, MED, or HIGH.

Kind-specific details

Some event kinds carry extra fields. Miss events include a missType such as DODGE, PARRY, BLOCK, or MISS. Cooldown-ready events include a producer-specific method like BASE_CD or ACTIONBAR. Combat damage and heal events add isCrit, isPeriodic, and an amountSource string for provenance. Consumers that need to pick trusted data can lean on eventType, direction, confidence, and those producer-specific fields together.

Compatibility Across World of Warcraft Versions

Addon authors play across many clients, and LibCombatPulse is built to travel with them. The library works across Retail, Classic, TBC, WotLK, Cataclysm, and MoP, which means a single event bus design can serve addons on modern and legacy clients alike. When you download LibCombatPulse for World of Warcraft, check the version tag on the package against your client, since the combat log and API surfaces differ between expansions and producers may emit slightly different field sets on older clients.

If you manage a large addon folder, the foxygame.net launcher makes short work of it: its built-in addon catalog lets you install LibCombatPulse alongside your other libraries in one click, and it keeps every package matched to the correct game version. That removes the usual guesswork of manually unpacking folders for each client.

How to Install LibCombatPulse

Installation follows the standard addon routine, whether you use a manager or do it by hand.

  • Download LibCombatPulse from your preferred addon source and confirm the package matches your client version.
  • Extract the archive so the folder named LibCombatPulse-1.0 sits directly inside your World of Warcraft/_retail_/Interface/AddOns directory, or the equivalent Classic, TBC, WotLK, Cataclysm, or MoP folder.
  • Restart the game client or type /reload if you are already logged in.
  • Confirm the addon appears in the AddOns list at character selection and is enabled.

For developers, the access pattern is short and familiar. Grab LibStub, call GetLibrary("LibCombatPulse-1.0", true), verify that NewConsumer exists, and register your consumer with an OnEvent callback plus optional filters such as minConfidence, enableCombat, enableProgress, enableInterrupts, and enableCooldowns. Treat the event table as read-only inside the callback, and use the returned handle to enable, disable, or unregister the consumer later.

Final Thoughts

LibCombatPulse fills a narrow but genuinely useful gap in the World of Warcraft addon ecosystem. It does not try to be a combat parser or a UI framework. Instead, it gives producers and consumers a clean, versioned contract for sharing normalized combat events, with filtering and copy safety built in. Whether you are wiring up a single addon or coordinating several, this library keeps dependencies out of the picture and keeps your event flow predictable across Retail, Classic, TBC, WotLK, Cataclysm, and MoP.