← home

wowanalyzer

dateread4 mintags open-source react typescript wow links live site my prs github

intro

wowanalyzer reads world of warcraft combat logs and gives you feedback on how you played: what you cast, what you missed, and where you lost throughput. it's open source and has been running since 2017.

i maintain its mistweaver monk module, and i've also worked on holy paladin and on shared code used by every spec.

mistweaver

the module works in two stages. first, normalizers go through the log and add links between related events: this heal came from that talent proc, or this damage event caused those healing events. then analyzers listen for the events they care about, like heals from one spell or a buff being applied, and use those links to attribute healing to the right source. their results feed the statistics and the guide that grades each cooldown.

talent statistics
talent statistics

an analyzer is only active if the player took its talent, and it subscribes to the events it needs. this is part of the spiritfont module's setup:

constructor(options: Options) {
  super(options);
  this.active = this.selectedCombatant.hasTalent(talents.SPIRITFONT_1_MISTWEAVER_TALENT);

  this.addEventListener(
    Events.heal.by(SELECTED_PLAYER).spell(talents.ENVELOPING_MIST_TALENT),
    this.handleEnv,
  );
  this.addEventListener(
    Events.applybuff.by(SELECTED_PLAYER).spell(SPELLS.SPIRITFONT_BUFF),
    this.handleSfApply,
  );
  // ...
}

the analyzer attributes healing through those links. a spiritfont buff can come from a proc or from thunder focus tea, and by the time the analyzer sees it, a normalizer has already linked it to its source:

handleSfApply(event: ApplyBuffEvent | ApplyBuffStackEvent) {
  if (HasRelatedEvent(event, SPIRITFONT_PROC)) {
    this.proccedSpiritfonts += 1;
  } else if (HasRelatedEvent(event, SPIRITFONT_TFT)) {
    this.tftSpiritfonts += 1;
  } else {
    this.tftSpiritfonts += 1; // fallback for tfts casted before combat
  }
}

writing one means describing a spec's rules precisely enough that the analyzer is right on every log, including ones you never tested. combat logs make that tricky: buffs get extended mid-duration, related events arrive out of order, and a single cast can show up as several separate events.

some of what i've shipped:

  • healing cooldowns revamp: each major cooldown (the two celestials, revival, and celestial conduit) now gets a breakdown with a timeline of what was cast and which buffs were up, a table of the healing it did, and a checklist that grades the setup
  • heart of the jade serpent: while its buff is up, some cooldowns recover faster. the analysis measures how much faster each spell came back, converts that into extra casts, and shows how much of the bonus was wasted while a spell sat ready
  • talent modules: spiritfont, peaceful mending, morning breeze, and others. spiritfont splits the talent's healing by what triggered it, and works out how much of each boosted heal the talent itself is responsible for
  • upkeep: hero talent statistics, the tier set modules, and patch updates for 12.0.5 and 12.1
  • bug fixes: an ancient teachings normalizer that linked the same heals twice when it reran, doubling the attributed healing, and lifecycles buffs that expired unused not being counted as wasted
invoke yu'lon breakdowns from the cooldowns revamp
invoke yu'lon breakdowns from the cooldowns revamp
celestial conduit breakdowns
celestial conduit breakdowns
renewing mist graph
renewing mist graph

heart of the jade serpent's analysis tracks two numbers per spell: the extra cooldown reduction each spell on cooldown gains while the buff is up, and what a spell that was already ready wasted. the extra reduction, divided by the spell's normal cooldown, is the number of extra casts:

private extraCasts(spellId: number, cdrMap = this.totalExtraCdrMs): number {
  const cdr = cdrMap.get(spellId) ?? 0;
  const baseCd = this.abilities.getExpectedCooldownDuration(spellId);
  // ...
  return cdr / baseCd;
}
hero talent statistics, with heart of the jade serpent's extra casts
hero talent statistics, with heart of the jade serpent's extra casts

the ancient teachings fix was a guard at the top of the normalizer. the analysis can run more than once on the same events, for example when you change a filter, and without the guard every rerun linked the heals again:

// guard against reruns to avoid doubly linked events thhat have already been processed
if (damageEvent._linkedEvents?.some((link) => link.relation === ability.linkRelation)) {
  return;
}

beyond mistweaver

  • holy paladin: a modernization of the spec's analysis for the war within, initial support for midnight, and modules for new talents like beacon of the savior
  • core: fixed the shared ability tracker, which added up critical healing but never counted critical hits. added support for new trinkets. extended shared ui components during the cooldowns revamp, and fixed a bug that drew buff bars across a whole window when the buff wasn't active

the ability tracker fix was one of my first prs, and it was two lines. critical heals and hits added to the total amount, but the count never went up, so every spec's crit count read zero:

     cast.healingVal = cast.healingVal.addEvent(event);
     if (event.type === EventType.Heal && event.hitType === HIT_TYPES.CRIT) {
+      cast.healingCriticalHits += 1;
       cast.healingCriticalVal = cast.healingCriticalVal.addEvent(event);
     }

challenges

debugging from someone else's log. bugs get reported as "this number looks wrong on my log." there's nothing to reproduce locally, so the fix starts in the raw events: first working out what the game actually did, then what the analyzer assumed.

working in a large codebase. wowanalyzer has its own abstractions for events, normalizers, and analyzers, and every change goes through review, so changes need to follow those patterns.

keeping up with the game. every patch can change how a spell works and silently break a module that was correct, so a lot of the work is catching that and updating it.

numbers

commits: 149
pull requests: 40 merged
contributor rank: #35 all time
active: may 2025 to now

table of contents