promotional bannermobile promotional banner

Recount - Revived

Recount is a graphical damage meter written by Cryect. Recount (Preservation) is an attempt to preserve it and keep it running moving forward
Back to Files

Recount-v1.23.2

File nameRecount-Recount-v1.23.2.zip
Uploader
PmptastyPmptasty
Uploaded
Nov 29, 2026
Downloads
6.2K
Size
493.1 KB
Flavors
RetailMoP ClassicClassic TBCClassicForever
File ID
9880932
Type
R
Release
Supported game versions
  • 12.1.0
  • 12.0.7
  • 12.0.5
  • 11.2.7
  • 5.5.4
  • 5.5.3
  • 4.4.2
  • 3.4.5
  • 2.5.6
  • 1.60.1
  • 1.15.9

What's new

Recount Changelog

[v1.23.2] (2026-11-28) - Settings window fixes

Fixed

  • In the settings window's Appearance tab, long font and bar texture names ran past their rows and over the column divider. Reported by the operator 2026-11-28 with a screenshot ("there are some display issues with some of the settings, there is text overlap"), where "AR ZhongkaiGBK Medium (Combat)" overran both edges of its row. CreateSelectFont and CreateSelectStatusBar (GUI_Config.lua) anchored each label at the row's centre only, so nothing bounded its width. The new shared me:CreateRowText anchors the label to the row's top-left and bottom-right corners, 2 px in, and calls SetWordWrap(false), so the client cuts a long name short on one line; short names stay centred. The new example in config_spec.lua asserts each label sits inside its row (frames.contains) and does not wrap (CanWordWrap); a label anchored at the centre only fails the first check, because its extent is unknown (stated by WoWAPITesting on thread d2f4a674; the old code was not re-run against it). 1335 passed (desk run 20261128-173448.505-1536952667). Not yet verified in game.
  • The Show Tabs box in the settings window always opened unticked, even while the tabs were showing. me:LoadConfig (GUI_Config.lua) set every other Window box from the profile but never ShowTabs, which defaults to on (Recount.lua:277). A player who followed the advice to untick it ticked it instead, and nothing changed until a second click. Found by the new every-checkbox spec below, after a player asked on Discord how to turn the tabs off (#recount-revived, 2026-11-28, Lykayos); the answer there was corrected to say the box may need two clicks until this ships. LoadConfig now sets it. Not yet verified in game.

Development

  • GUI_Config.lua is at 100% line coverage (was 89.85%). New examples in config_spec.lua: every checkbox on every page is clicked off and on again and must keep the state the player gave it and change the saved profile; the Number Format radio group keeps exactly one box ticked; the zone, group and confirm boxes grey out on opening when their switch is off; Show Tabs opens as saved; the window is built on first use when it was not preloaded; both media lists scroll; Show Scrollbar reaches the tab window's scroll bar; Hide When Not Collecting hides and shows the main window; the window-stack report names a missing neighbour; a reset class colour follows a class-colour addon; and class names load through LocalizedClassList where FillLocalizedClassList is gone. Record Buffs/Debuffs is pinned as saving nothing, because it is kept on screen until buff and debuff tracking ships. 1348 passed (desk run 20261128-180714.476-3419984189).

  • Removed dead code from GUI_Config.lua. me.SetBarTexture and me:BarTextureDropDown_Initialize drove a StatusBarDropDown that nothing creates (the bar texture list replaced it), and me:ConfigureCheckbox's default click handler was replaced by every caller and only set the box to the state it already had. SavedCheckVars was filled by me:CreateSavedCheckbox and never read; it is gone, and the setting names its callers pass stay as a guide for the reader only. The UIDropDownMenu_AddButton and UIDropDownMenu_SetSelectedID upvalues went with them, and a GUI_Main.lua comment that pointed at the removed function was updated.

  • Test harness pinned to 56bfccb, which records FontString:SetWordWrap and adds its real getter CanWordWrap (WoWAPITesting thread d2f4a674). Before it, SetWordWrap was a no-op with no getter, so the one-line half of the check above could not be asserted.

[v1.23.1] (2026-11-28) - Number Format on Forever

Fixed

  • On WoW Forever and Retail Midnight, the Number Format setting (Standard, Commas, Short) did nothing. Reported on Discord (#recount-revived, 2026-11-27, Rhendak): "Recount seems to ignore the setting for Number Format (Standard, Commas or Short). Changing the setting does nothing." The screenshot showed Commas ticked, the settings preview reading "71,460" and the bars reading "5.8K"; Recount's own Short format writes a lowercase "k", so the bars were not going through it. Tracker_Midnight.lua and GUI_Detail_Midnight.lua handed every figure to the client's AbbreviateNumbers, readable or not; only Live Threat's renderLiveRow chose by secrecy. The new Recount:FormatMeterNum (GUI_Main.lua) is that choice in one place: a secret goes to AbbreviateNumbers, because addon code cannot round or split one into digits, and every readable value goes to Recount:FormatLongNums, which follows the setting. The source bars, the Total bar, Live Threat and the breakdown window's amount and rate columns use it; pet rows, the Total bar's summed rate and a plain per-second rate are always plain and call FormatLongNums directly. Known cost: while the game keeps a figure secret (in combat on these clients) the bar still shows the game's short form, until the fight ends. The midnight_spec.lua assertions written as AbbreviateNumbers(n) pinned the bug and now expect the Standard format; new examples cover Commas and Short on a source bar, a secret total under Commas and Commas on a pet row. 1334 passed (desk run 20261127-141508.549-3036869800); Tracker_Midnight.lua, GUI_Detail_Midnight.lua and GUI_Main.lua stay at 100% line coverage. Not yet verified in game.

[v1.23.0] (2026-11-27) - Pets and reports on Forever

New

  • On WoW Forever and Retail Midnight, each pet gets its own bar, indented under the player who owns it. Requested by the operator 2026-11-24: "can we make it so the pet gets it's own row like a player does, just indented off the the player that owns the pet". The game's meter gives a pet no source of its own, so Tracker_Midnight.lua's new petsOf fetches each source's spells (MidnightReadSource) and sums those carrying a creatureName per pet; paneEntries lists each source followed by its pets, largest first, and renderPetRow draws a pet as an indented, unranked bar in the PET class colour. Clicking a pet's bar (requested by the operator 2026-11-25: "i need the pie chart click to work on the pet too") opens the breakdown window with only that pet's spells: Recount:ShowMidnightSpellDetail takes the pet's name, and fetchSpellRows reads the owner's source and keeps the spells whose creatureName matches it, so the pie and shares are of the pet's own total. Its targets are looked up on the enemy side by the pet's name first and the owner's second, because which one the game records there is not documented. Damage Done, DPS, Healing Done and Absorbs get pet rows; Damage Taken and Deaths do not, because there a spell is what hit the source. Pet rows are built only from plain values: during combat the amounts are secret and cannot be summed, so the pet rows appear once the fight is over. The owner's bar keeps the game's figure, which already includes the pet. An owner with pets shows [+] before its name, and clicking it (requested by the operator 2026-11-24: "can we add a +/- next to the players so they can hide/show the pets?") opens its pet rows and shows [-]. Pets start folded away (operator, 2026-11-25: "HAVE THE -/++ MINIMISED BY DEAFULT"); setPetToggle puts a small button of its own over the start of the row, so a click on the rest of the bar still opens the breakdown. The opened owners are kept in expandedPets for the session only, keyed by plain GUID or name, so a reload folds every pet away again; an owner with neither gets no toggle and its pets always show. Specs in midnight_spec.lua; 1277 passed (desk run 20261125-061058.926-2140623529). Not yet verified in game.
  • On WoW Forever and Retail Midnight, hovering a bar shows its top three abilities, as on Classic. Requested on Discord (#recount-revived, 2026-11-26, Rhendak): "In WoW forever, recount does not do this when you hover over the DPS bars." wireRow (Tracker_Midnight.lua) used to strip OnEnter, because a secret routed into the shared GameTooltip taints it for every other addon and Blizzard's own UI. The new tooltipSpells fetches the bar's source (MidnightReadSource) and returns nothing the moment any value it would show is secret, so in combat there is no tooltip at all; out of combat showTooltip writes the name, Classic's Top 3 Damage Abilities or Top 3 Heals list through Recount:AddSortedTooltipData, and the click hint. A pet's spells on its owner's bar are labelled Spell (Petname); a pet's bar lists only its own. Damage Done, DPS and Healing Done only: in Damage Taken and Deaths a spell is what hit the source. The spec that asserted the hover handler is absent pinned the old design and is replaced; the secret case still asserts nothing reaches the tooltip. Specs in midnight_spec.lua; 1330 passed (desk run 20261126-171522.931-2022934171). Not yet verified in game.

Fixed

  • On WoW Forever and Retail Midnight, turning on the Total bar left an empty gap above the bars. Reported on Discord (#recount-revived, 2026-11-25, Tangvaffel): "adding the total bar just adds empty space above everything else". me:LayoutPane (GUI_Main.lua) reserves row 0 whenever the Total bar is on, and Tracker_Midnight.lua's renderPane always hid it, on the grounds that a total needs adding up secret values. It does not: the session carries its own totalAmount (DamageMeterCombatSession, DamageMeterDocumentation.lua, forever tree). The new renderTotalRow draws it in the Total Bar colour, full width, passing a secret total straight to AbbreviateNumbers; the combined per-second rate is summed only when every source's rate is plain, and Deaths has none. Live Threat still has no Total bar, as on Classic. The spec that asserted the bar never shows ratified the bug and is replaced. Specs in midnight_spec.lua; 1282 passed (desk run 20261125-111437.400-3417305198). Not yet verified in game.
  • On WoW Forever and Retail Midnight, Recount never offered to reset its data on joining a group or raid, or on entering a new instance. Reported on Discord (#recount-revived, 2026-11-25, Rhendak): "when you join a new group, recount will not ask you if you want to reset the data, as it used to for other versions of WoW". Recount:PartyMembersChanged and Recount:DetectInstanceChange (deletion.lua) both did nothing unless db2.combatants held something, and on these clients it is always empty because the numbers live in the game's meter. The new hasDataToReset (also Recount.HasDataToReset) asks the game's meter for its kept fights (Recount:MidnightPastSessions) on a Midnight client and keeps the combatant test everywhere else; the reset itself already clears the game's sessions. Specs in deletion_spec.lua; 1280 passed (desk run 20261125-102330.875-2089167000). Not yet verified in game.
  • On WoW Forever and Retail Midnight, a chat report sent only its title line. Reported on Discord (#recount-revived, 2026-11-24): "when I try to share a report, it sends only the first line -- the report header -- and nothing else", out of combat, on every channel. Recount:ReportData (GUI_Main.lua) builds its rows from dbCombatants, which the combat log fills and which stays empty on these clients, so it found no rows. On a Midnight client it now hands off to the new reportMidnight, which sends the lines from the new Recount:MidnightReportLines (Tracker_Midnight.lua): the same C_DamageMeter session the bars read, in the same "n. Name amount (per second, share%)" shape and the same total line, and Live Threat's readings for that mode. Building a line is arithmetic and string work on the values, so while any reported value is secret (in combat) nothing is sent and the player is told the data is available after combat. A past fight picked from the fight menu is titled with the game's name for it (Recount.FightName, set by the menu), as on Classic; the mode alone is used only when no name is known. A past fight the game has since dropped is read as Overall Data, so its report is titled "for Overall Data" rather than with the dropped fight's name (found on the session's self-audit, Peer Review thread 5b406c2b). A second Discord report the next day (#recount-revived, 2026-11-25, Rhendak) showed the same title-only whispers, "Recount - Damage Done for (!) Saltspine", from a past fight. The title and send code are now the shared reportTitle and sendReportLine. Specs in midnight_spec.lua; 1271 passed (desk run 20261124-181614.531-986513177). Not yet verified in game.
  • On WoW Forever and Retail Midnight, a pet's abilities were listed in its owner's breakdown as if the owner had cast them. Reported by the operator 2026-11-24 with a hunter's breakdown showing the pet's Bite as a plain ability: "the pets aren't showing up seperately in forever like they were in classic". The client's damage meter credits a pet's damage to its owner (DamageMeterOverrideType.RedirectSourceToOwner, forever tree), so a pet never has a bar of its own there; the only mark of it is creatureName on each DamageMeterCombatSpell, empty for the owner's own spells. GUI_Detail_Midnight.lua's fetchSpellRows grouped on spellID alone and never read that field. It now keys each row on the spell and the pet that cast it, and labels a pet's row Bite (Petname), the label Classic's merged breakdown uses (mergedPetBreakdown) and the shape of Blizzard's own (DamageMeterEntry.lua GetNameText). creatureName is not declared NeverSecret, so a secret name is treated as absent and that spell folds into the plain row. The refresh restores the selection by the row's new key instead of its spellID, and the sort breaks a tie between two pets' casts of one spell on the pet's name. Pets still have no bar of their own on these clients, because the game's meter does not report them separately. Specs in midnight_spec.lua; 1265 passed. Not yet verified in game.
  • Possibly-secret values were compared with nil before being tested for secrecy. Comparing a secret is itself an operation on it. isPlain (GUI_Detail_Midnight.lua), ownerKey and renderTotalRow (Tracker_Midnight.lua) and fetchSpellRows' spell-id check now test secrecy first; sourceGUID and name are ConditionalSecret in the forever tree's DamageMeterDocumentation.lua, and a session's totalAmount is secret in combat. Live Threat's renderLiveRow compared the pet owner's name, which comes from UnitName and can be secret, and filled the bar with percent or 0, a truth test on a share that can be secret; both now test secrecy first. Whether the client raises on secret == nil is not verified, and the harness cannot show it, so the order is fixed regardless. Found by Peer Review (thread 5b406c2b, R1 and R2).

Development

  • A chat-report line has one shape on every client. The "n. Name amount (rate, share%)" line and the "0. Total" line were built twice, in Recount:ReportData (Classic) and Recount:MidnightReportLines, with the rounding copied. Both now call Recount.ReportLine and Recount.ReportTotalLine in GUI_Main.lua, and Classic's total line goes through sendReportLine like every other line (Peer Review, thread 5b406c2b, S1). The "which pet cast this spell" test is likewise one Recount.MidnightPetName in Tracker_Midnight.lua, used by the pet bars and the breakdown window.
  • Pet bars no longer fetch every player's spells on every redraw. Out of combat the main window redraws on each refresh while the numbers stand still, and petsOf fetched each source's spells every time: 40 fetches a redraw in a 40-player raid. Each source's pets are now kept with the plain total and per-second rate they were built from, and reused while neither has moved; the cache starts afresh when the data set or mode changes and on a reset. In combat nothing changes, since the amounts are secret and no pet rows are built. Self-audit finding 2 (thread 5b406c2b); the cost was never measured in game.
  • Tracker_Midnight.lua, GUI_Detail_Midnight.lua, deletion.lua and GUI_Main.lua are at 100% line coverage (were 93.41%, 97.37%, 95.70% and 100%). New examples cover each bar-text setting on the pet and Total bars, a session with no total, a secret rate in DPS mode, an owner remembered by name and one with no plain key, Live Threat chat reports on Forever, a secret rate or name in a report, the breakdown window's guard clauses, drag and scroll handlers, both enemy-side amount fallbacks, retail scenario groups and deletion.lua's revision line. 1323 passed (desk run 20261126-123846.074-3716594306).
  • docs/FEATURE_IMPROVEMENTS.md and Tracker_Midnight.lua's header said sourceGUID and specIconID are NeverSecret. The forever tree marks sourceGUID ConditionalSecret and specIconID SecretValue; both records are corrected. The code already treated sourceGUID as possibly secret and never reads specIconID.

[v1.22.1] (2026-11-14) - Live Threat on Forever

Fixed

  • Live Threat showed nothing on WoW Forever and Retail Midnight. Reported by the operator 2026-11-13: "live threat isn't working in forever". TrackerModule_Threat.lua's poller keys every reading by a combatant from the combat log and runs only while Recount.InCombat is set, and on these clients there is no combat log, so there were no combatants and Recount never entered combat. On top of that, Tracker_Midnight.lua's renderer cleared the bars of every mode with no C_DamageMeter metric, Live Threat included. Now, on a Midnight client, the module's new PollThreatMidnight reads the group straight from unit tokens while UnitAffectingCombat("player") is true, into a list of readings that each carry their own name, owner and class. The module registers that list in the new Recount.MidnightLiveSources, keyed by the mode's returner, and the renderer draws it through the new renderLiveRow: the threat with the share of aggro beside it, as on Classic, and the bar filled by the share. Name, class, threat and share may be secret on Forever (UnitName, UnitClass and UnitDetailedThreatSituation are SecretWhen...Restricted in the forever tree's UnitDocumentation.lua; SecretPredicatesDocumentation.lua says threat against a boss is the usual case). Each one is tested with issecretvalue before Lua touches it, a secret only reaches SetFormattedText or AbbreviateNumbers, and a list holding a secret threat stays in group order because it cannot be sorted. A threat bar opens no spell breakdown on a click: the shared click handler (now wireRow) skips a row with no metric. Turning the Threat module off empties the list. Threat (the per-fight peaks) still stays blank on these clients. Specs in forever_spec.lua, a secret threat among them; 1252 passed, and TrackerModule_Threat.lua is at 100% line coverage. Not yet verified in game.
  • Recount:UnitCombatantName compared Forever's second UnitName return before checking for Forever (roster.lua). On Forever that return is a surname and may be secret, and comparing a secret raises. Forever is now tested first.

Development

  • Tracker_Midnight.lua is at 100% line coverage (was 96.90%). currentMetric now takes the mode's label: its own guard for a mode with no data could never run, because renderPane returns before calling it in that case. New midnight_spec.lua examples cover a metric the client does not have, the client class-colour fallback, a pane with no rows, the hidden Total row, a mode's title function, the scrollbar row width, a refresh before the window exists, and 11.x retail. 1260 passed (desk run 20261113-184855.226-380354974).

[v1.22.0] (2026-11-12) - Past fights on Forever

New

  • On Retail Midnight and WoW Forever, the fight menu lists the past fights the game's damage meter keeps. Requested on Discord (#recount-revived, 2026-11-09): only Overall and Current could be picked there. Recount's own fight list (FoughtWho) is filled from the combat log, which this client does not give addons, so it was always empty. The list now comes from C_DamageMeter.GetAvailableCombatSessions through the new me:PastFights in GUI_Main.lua. It is newest first, sorted by sessionID descending because the client's order is not documented, and each fight is labelled "Fight n - " followed by the game's own name for it (plain "Fight n" when the game gives none). Picking one sets CurDataSet to MeterSession<sessionID>, not Classic's Fight<n>, which indexes FoughtWho and which Fights.lua matches. The bars and the detail window then read that session through GetCombatSessionFromID and GetCombatSessionSourceFromID, via the new Recount:MidnightReadSession and Recount:MidnightReadSource in Tracker_Midnight.lua, which both windows now share in place of their own fetches. Session ids and names are not marked secret in DamageMeterDocumentation.lua (forever and live trees); amounts still are and are only passed to display sinks. A chosen fight the client no longer lists (it drops old fights, and a reset clears them all) falls back to Overall Data instead of a blank window. Classic flavours and the Titan Panel data-set menu are unchanged. Specs in midnight_spec.lua; 1241 passed (desk run 20261109-174105.438-3767548149). Not yet verified in game.

Fixed

  • On Retail Midnight and WoW Forever, Overall Data emptied itself at the start of every fight. Reported on Discord (#recount-revived, 2026-11-07, twice): "always reset data", and "only show and report the current fight". The bars and the detail window always read Enum.DamageMeterSessionType.Current, the per-fight session the client restarts on every pull, whatever data set was chosen. The new Recount:MidnightSessionType reads the Overall session for Overall Data and the Current session for Current and Last Fight. Overall is also the fallback for an unknown data set, matching Blizzard's own meter, which opens on Overall (Blizzard_DamageMeter/DamageMeter.lua OnLoad, forever tree). The Forever, Midnight and split-view specs had seeded the Current session, so they matched the bug; they now seed Overall, and new specs pin each data set to its session. 1232 passed (desk run 20261107-133509.421-4186158475). Not yet verified in game.

Development

  • wow-version-replication.ps1 copies into WoW Forever's own _forever_ install as well as _classic_beta_, which is kept while it is still installed (asked of every addon workspace on inbox thread a4fcfc2e). A destination is now kept when its version folder exists, not its Interface\AddOns folder, which a fresh install does not have until an addon is put there, so a new install was skipped silently. The single-instance mutex is Local\ rather than Global\: creating a Global\ mutex needs a privilege a normal user lacks, so the constructor threw, the guard failed open, and a second watcher was never stopped. Checked with wow-sync-preview, which lists the _forever_ target; after a restart the _forever_ copy carried the new code.

[v1.21.0] (2026-10-26) - Highlight Your Bar

New

  • Highlight Your Bar: your own bar breathes, so it stands out. Requested on Discord (#recount-revived, 2026-10-23) for Live Threat, where one mage among many same-class bars is hard to find. A new Highlight Your Bar checkbox under Bar Text Options (HighlightSelf, on by default in Default_Profile at the operator's request after trying it in game, 2026-10-24: "can you make it so it's turned ON by default in the next update?"; AceDB applies the default to every existing profile that never set it, so everyone sees it after updating, and unticking it saves the choice). New Recount:SetSelfHighlight(statusBar, isSelf) in GUI_Main.lua starts LibAceGUIWidgets' W:Breathe (its looping eased alpha pulse, 1 to 0.35 and back, one second each way) on your bar and W:StopBreathing on every other, and is the one place all three callers go through: me:SetBar (the bar's combatant has type == "Self", which Recount:AddCombatant sets by name, so it works in every mode), the Midnight renderer in Tracker_Midnight.lua (isLocalPlayer, which DamageMeterDocumentation.lua marks NeverSecret in both the live and forever trees, so testing it is safe in combat) and the settings preview bar. Every row is set on each redraw, so a row reused for someone else stops. My first version painted your bar a separate editable colour; the operator asked for the breathe effect instead (Discord, 2026-10-24: "todo instead of what you did, why don't you use libaceguiwidgets and use the breathe effect?"), so the colour, its swatch and its saved default were removed before release. LibAceGUIWidgets is now a required dependency on every flavour (## Dependencies in all seven TOCs and required-dependencies in .pkgmeta); VersionCheck-1.0, already required, requires it too, so players should already have it. Tests/env_recount.lua loads its core file from the installed copy. Known cost: the pulse is on the StatusBar, which also carries the bar's name and number, so the text dims with it; breathing only the fill texture would keep it steady but cannot be driven offline. Your pet's bar does not breathe. New enUS key Highlight Your Bar; other languages show the English text until translated. Specs in guimain_spec.lua, config_spec.lua, midnight_spec.lua and toc_spec.lua; 1227 passed (desk run 20261024-014240.475-1962401716). Seen working in game by the operator on Classic Era, 2026-10-24 ("it works well"); not yet run on the other flavours.

Documentation

  • Alt+click is described as adding to the graph window, not "the comparison graph". The Compare Graph is a separate window; Alt+click goes through me:AddCombatantToGraph to the Shift+click graph window, and starts a new comparison when that window is closed or shows another mode. README and CurseForge description reworded (Peer Review, thread 5f8dc1ad).

Testing

  • guimain_spec: the graph window's + button leaves out a combatant the window stopped listing. Recount:AddAllToGraph reads DispTableSorted, which me:RenderPane trims on every redraw and every option change and delete empties through FullRefreshMainWindow; the spec removes a combatant's fight row, redraws, and checks the button adds no line for them. The stale row seen on thread dd45be6d came from that spec calling RefreshMainWindow(true), the periodic refresh, which draws nothing without new data. It failed with the redraw's row removal in me:RenderPane taken out (desk run 20261018-094108.074-354999828). 76 passed (desk run 20261018-094040.101-2500126384). "Drops a bar whose combatant has no row in the shown fight" now also checks the sorted list, not only the lookup (Peer Review, thread 5f8dc1ad); 76 passed (desk run 20261018-094405.310-691447832).
  • guimain_spec's RecountDeathTrack stand-in declares each method's real parameters. RecountDeathTrack is defined outside this repo, so the language server took its method signatures from the stand-in, whose zero-argument methods flagged the real calls in Tracker.lua (AddDeath) and Fights.lua (DeleteDeathTrackEntry) as redundant-parameter. Both files now show no such warning after re-analysis. 76 passed (desk run 20261018-095738.437-3258253834).

[v1.20.0] (2026-10-18) - Totems

New

  • A Totems mode: how many totems each shaman dropped, and which. Requested on Discord (#recount-revived, 2026-10-16): non-damaging totems such as Windfury or Strength of Earth never appeared anywhere, because the damage and healing modes skip a pet that did neither. New TrackerModules/TrackerModule_Totems.lua, fed from Recount:SpellSummon on every SPELL_SUMMON. A summon counts when its caster is a player whose class, from GetPlayerInfoByGUID, is SHAMAN, and its spell is a totem. The client has no flag marking a spell as a totem, so the module keeps one spell id per totem (36, any rank, Classic through MoP plus Season of Discovery's Decoy Totem rune, each checked against Wowhead's data for its flavour) and on a summon asks the client for each one's name with C_Spell.GetSpellName or GetSpellInfo; a summon counts when its spell name is one of those. The client loads some spell data on demand (Classic Era documents C_Spell.IsSpellDataCached and C_Spell.RequestLoadSpellData in Blizzard_APIDocumentationGenerated/SpellDocumentation.lua), so an id that exists but has no name yet is asked for with RequestLoadSpellData and retried on the next summon, instead of the table being built once and that totem going uncounted for the session (Peer Review, thread 9df105ed, F2). Both functions are feature-detected; without DoesSpellExist an id the flavour lacks is retried on every summon, at the cost of one lookup. Whether a spell's name can in fact be missing before its data loads is not verified. The totem-name check runs after the player and shaman checks, so other classes' summons never pay for those lookups (Peer Review, thread 9df105ed). Ranks share a name, so one id covers them all, and the client's own names make it work in every language. An id a flavour lacks has no name there and is skipped. This replaced a first version that counted every shaman summon except Feral Spirit, so an engineering dragonling or trinket summon showed as a totem (Peer Review, thread cf1a2066, R2). That the combat log's summon spell name equals the client's spell name for every totem on every flavour is not verified in game, nor what Wrath's Call of the Elements logs. An elemental totem's elemental is summoned by the totem, not the shaman, so it is not counted. The detail view lists each totem, broken down by the summoned unit's name. A totem never starts a fight, since totems go down before the pull. With Record Combat Only on, a totem dropped out of combat is held back and counted only if a fight starts within 120 seconds of it (the module wraps Recount:PutInCombat to flush the held totems), so totems dropped while travelling are never recorded. Held totems older than that are dropped from the list as new ones arrive, and a data reset (it wraps Recount:ResetDataUnsafe) forgets them. With Record Combat Only off, a totem counts at once, as every other mode records out of combat. Found by Peer Review on the self-audit (thread cf1a2066). Loaded by every TOC, appended after Threat so existing mode positions do not move; short tab name Tot. Retail on 12.0 and later has no combat log for addons, so the mode stays empty there. Not yet verified in game.
  • Totems are credited to their shaman like pets, in more modes. Asked by the operator on 2026-10-16: "how about we just treat totems like pets, and attribute the right totem to the right shaman?" Before this only Damage, DPS and Healing merged a pet into its owner, so Mana Spring's and Mana Tide's mana, a cleansing totem's dispels and Healing Stream's overheal sat on a totem combatant the bars never show. New Recount:MergedPetAmount in Recount_Modes.lua sums a field over the owner and every pet when Merge Pets w/ Owners is on, and Recount.MergedPetBreakdown exposes the existing per-pet breakdown merge (rows labelled with the pet's name, e.g. "Mana Spring (Mana Spring Totem)"). Overhealing Done, the Healing detail's overheal pane and its tooltip, Mana Given (TrackerModule_PowerGains.lua) and Dispels (TrackerModule_Dispels.lua) now use them, so a Felhunter's dispels count for its warlock too. With the option off, every mode reads the owner alone, as before. That the client reports a cleansing totem's removal as a SPELL_DISPEL from the totem is not verified for any flavour, so the CurseForge notes leave cleansing totems out until it is seen in game (Peer Review, thread 9df105ed, N1). Not yet verified in game.
  • Pet threat, and a Live Threat mode. Asked by the operator on 2026-10-17: "people solo with pets need to keep their threat below pet, so they have to see it", and "we need 2 types of threat meters, one that keeps track of it historically, and one that resets every fight, like threatclassic2". TrackerModule_Threat.lua now polls pet, partypetN and raidpetN beside their owners, keyed as the combat log stores a pet (PetName <OwnerName>, with Name-Realm for an owner from another realm). The existing Threat mode keeps each one's peak per fight and overall, against their own target. New Live Threat (short tab name Live, registered through the new Recount:AddOptionalMode, so it follows the Threat module's checkbox and is appended after every existing mode, keeping saved positions): everyone's threat against your target, or your target's target when you target a friend, retaken every poll and cleared when a fight starts; its tooltip gives the threat and the client's percentage toward pulling aggro. The live readings are held in a weak table outside the saved data, so a reload never brings back a stale list. Because it reads the present, not the selected fight, Live Threat is listed in the new Recount.LiveModes, which me:RenderPane and Recount:ReportData in GUI_Main.lua read (one HasDataFor helper) to give a bar and a report line to someone with no row in the selected fight; before that, with an older fight selected, anyone missing from it had no live bar (Peer Review, thread ef07ad9f, F6). Both threat modes list pets as their own bars even when Merge Pets is on or the Pet filter hides pets (Recount.PetShownModes, read by Recount:ShowsCombatant in GUI_Main.lua): a pet's threat is compared with its owner's, not added to it. The poller has no flavour guard of its own; whether UnitDetailedThreatSituation gives it a reading on Retail Midnight or Forever is not verified. That UnitName("pet") matches the name the combat log gives the pet was confirmed in game by the operator on 2026-10-17 (which client was not recorded); if it ever differs, that pet records nothing.
  • Ticking Threat turns on what it needs. Asked by the operator on 2026-10-17: "when you check the threat to turn it on, it turns on all the other settings required for it to work if they are not on". Recount:EnableThreatRequirements, called from the Modules checkbox in GUI_Config.lua, switches on global data collection (through Recount:SetGlobalDataCollect, so the Data Collection box follows), Record Combat Only, recording for yourself, your group and pets (threat is only stored on a combatant the combat log already created), and Record Time Data for yourself, so the threat graph has a series. Record Combat Only is needed because threat is only polled in combat, and with it off Recount never enters combat, so both threat modes stayed empty (Peer Review, thread ef07ad9f, F1). The checkbox then re-reads every settings box from the profile (me:LoadConfig); before that, ticking Threat with the settings open left the filter boxes showing off, and the next filter click wrote those states back and undid the requirements (F2). Known cost: Recount has no setting that turns Record Combat Only off (its only writes are the default in Recount.lua and this one), so the one way to lose it after ticking Threat is a saved profile that already has it off, from an older version or a profile switch; threat then records nothing until Threat is ticked again. It does not touch the zone and group-size filters, which can still stop collection where you are.

Changed

  • The Damage and Healing tooltips count every pet, not only the top one. With Merge Pets on, both tooltips picked the single pet with the most damage or healing, so a shaman with several totems saw one. The pet line now gives every pet's combined share, naming the top pet and how many others there are (Searing Totem <Shaman> +1 (12%)), and the two pet Top 3 lists draw from all of them, each row labelled with its pet when there is more than one. One shared addPetTooltip in Recount_Modes.lua replaces the two copies.
  • Power gains out of combat are dropped when Record Combat Only is on. Recount:AddGain recorded every energize and leech with no combat check, so Mana Spring ticks and regen procs between pulls went into Overall and into the next fight. It now returns as healing does. Unlike Dispels it does not start a fight, since a fight per Mana Spring tick would fill the fight list with empty fights. As in AddHealData, both sides are stamped active (SetActive) before the return. My first version returned before the stamps, so a giver whose only activity was mana between pulls could be deleted 30 seconds later by the idle sweep in Recount:TimeTick, earlier fights included. Found by Peer Review (thread eac2bef3, R1).
  • Threat bars show real threat as ThreatClassic2 does, and a click opens the threat graph. Asked by the operator on 2026-10-17: "it's also not showing the threat valiue, 3 and 4 isn't useful. it should look like threatclassic2", and "i can't click into the rows to see what the threat is ... like clicking into dps brings up the graphs, we should have the same thing for threat". Live Threat now keeps the threat itself (the client's value divided by THREAT_SCALE) instead of thousands to one decimal, and its returner gives the client's share of aggro as a second value. Recount.LiveModes tells me:RenderPane and Recount:ReportData in GUI_Main.lua that this second value is a share, not a rate: it is never added to the total's per-second figure, and each bar and report line reads the threat followed by the share, as (80%), whatever the per-second and percent bar-text options say. Threat's bar is its saved peak times 1,000, rounded, and both tooltips use Recount:FormatLongNums. Peaks stay saved in thousands but are now kept to the single point (KThreat divides to 1/1000, not 1/10), so the Threat bar shows the same 6,294 Live Threat does instead of 6,300 (Peer Review, thread 2af65df6, P3). A Classic fight saved before the scale fix (below) held tenths of a value 100 times high, so 629.4 is exactly 6,294; RescaleSavedThreat rounded its quotient to tenths and showed 6,300, and now rounds to thousandths, so saved Classic peaks keep their exact value too (my self-audit, thread eaa2b2be, S1; confirmed by Peer Review). RescaleSavedThreat returns at once on a THREAT_SCALE 1 client (retail and Forever), so no saved peak there is rescaled; one saved there before this update was kept to tenths and still shows the nearest hundred (Peer Review, thread 2288371d, A4). The share of aggro is rounded to a whole percent where it is read, since the client's percentage is fractional and every place that prints it uses %d (P2). A chat report of Live Threat names the mob in its header (Live Threat: Ragnaros) instead of a fight, and sends no total line, since everyone's threat on one mob added up is no threat meter's figure (P4); the header code for both chat and Battle.net whispers is now one block. The mob's name stays inside the Threat module, cleared when a fight starts, and reaches the report through the new Recount.LiveModeSubjects, keyed by mode like Recount.LiveModes, so a second live mode would name its own subject instead of the threat target (thread eaa2b2be, S3). A mode's sixth element was not used for this because it also sets the window title, which is only refreshed when the mode changes. The main window's Total bar is not drawn for a live mode either, so the window and the report agree (S2). me:LayoutPane still reserves its slot, as it does for any fight with no total, so the first bar sits one row down. The threat graph is each player's threat against their own target, not necessarily the Live list's mob, since that is the only series recorded (A3). Neither threat mode has a breakdown, so a plain click on either opened nothing; the new Recount.GraphClickModes makes me:MainWindowSelectPlayer open the threat graph instead, as Shift+click already did, and the bar's right-click menu drops its "Show Details (Left Click)" entry for those modes (found on this session's self-audit). Ticking Threat now also turns on Record Time Data for pets, so a pet's bar has a graph. The share is the client's UnitDetailedThreatSituation percentage, shown whole (%d); that it matches ThreatClassic2's number in play is not verified. Not yet verified in game.
  • The title-bar mode menu is grouped into submenus, each sorted alphabetically. Asked by the operator on 2026-10-17: "lets sort this alphabetically, so it's easier to navigate", then "can we make it a multi tiered menu ... with a few main categories then sub". Recount:OpenModeDropDown in GUI_Main.lua now opens Damage, Healing, Threat, Power, Utility and Misc as LibDropdown submenus (nested type = "group" entries), in that order, from one ModeGroups table. A mode is filed by its English locale key, so the grouping holds in every language, and a mode no group names, such as one another addon registers, goes under Misc. Inside each submenu the modes are sorted by their shown label, case-insensitively, with an explicit order rather than the library's name fallback. A group with nothing in it, as Threat is with its module off, is left out. The groups are two levels deep; Power is the longest at nine entries. New enUS keys Power and Utility; Misc was already translated. In game the operator found a group that highlighted on hover and showed no submenu: FadeMenu fades a picked-from menu to alpha 0 with UIFrameFade and then releases its frames to LibDropdown's pool, and AcquireFrame handed a faded frame to the next submenu without resetting its alpha (Recount resets only the root's), so that submenu opened fully transparent. A frame reused while its fade was still running would also be released by the fade's finishedFunc from under its new menu. AcquireFrame in libs/LibDropDown-1.0/LibDropdown-1.0.lua now cancels any fade on the frame (UIFrameFadeRemoveFrame, which Classic Era and retail both define in FrameUtil.lua) and sets its alpha to 1; the library's MINOR goes from 3 to 4 so this copy wins over an older one another addon loads. Two new specs in interactions_spec.lua hover every group through the real buttons after picking a mode and letting the fade finish, and after reopening mid-fade; both fail with the fix taken out. They need GameTooltip_SetDefaultAnchor, which the harness supplies since pin 0714030 (asked for on inbox thread fcf6a420); until then Tests/env_recount.lua carried a stand-in, now deleted. The two specs run under Classic Era only; they were not run with the Mainline tooltip anchor, which differs, though nothing in Recount or LibDropdown reads where the tooltip was anchored. The submenu fix is not yet verified in game.
  • Removed: Recount:BarDropDownOpen and Recount.CreateBarDropdown. The older UIDropDownMenu bar menu, replaced long ago by the LibDropdown menu Recount:OpenBarDropDown opens, had no caller in Recount, and none of the addons installed under Classic Era call either method (Peer Review's search, thread 4dd1717d); other flavours' AddOns trees were not searched. A plugin that still calls one of them now raises. The two unused UIDropDownMenu_AddButton and UIDropDownMenu_SetAnchor locals went with them.
  • GUI_Main.lua: one menu placement, and dead code removed. The bar, fight and mode menus each carried a copy of the "open beside the frame, on the side with more room" block, and a fourth sat in the removed BarDropDownOpen; they are one PlaceMenuBeside, pinned by a placement spec per menu in interactions_spec.lua and guimain_spec.lua. Removed because nothing could reach them, each by reading and each now pinned by a spec that drives the code around it: me:CreateFightDropdown and the commented-out FightDropDownOpen, ModeDropDownOpen and CreateModeDropdown (no caller); Recount.ShortNumber's duplicate T, G, M and k branches; me:SetBar's row-range guard (its two callers in me:RenderPane only pass row 0 when the total bar is shown, which is when row 0 exists); me:BindPane's nil-mode check (an unknown tab label falls back to mode 1, and the mode list always starts with Damage Done); Recount:ShortModeName's check for a true locale value (AceLocale-3.0 stores true as the key, AceLocale-3.0.lua:50 and :65; a newer AceLocale could change that); and SetTabLevel's no-tab-strip guard (only called on the main window once the strip exists). me:AddCombatantToGraphData is folded into Recount:AddAllToGraph (below). New Tests/guimain_spec.lua (75 examples) takes GUI_Main.lua to 100% line coverage (Peer Review, thread f4093173, S4).
  • With Merge Absorbs on, the Healing tooltip's pet share now counts the owner's absorbs. The bar adds them (MergedPetHealingDPS) but addPetTooltip's denominator did not, so the pet's percentage read high. Found by Peer Review (thread eac2bef3, N1).

Fixed

  • Threat read 100 times too high on every Classic client. Reported by the operator on 2026-10-17 ("our threat numbers seem to be off") against ThreatClassic2. Classic clients return UnitDetailedThreatSituation's threat value at 100 per point of damage; the retail client, which Forever runs, at 1. ThreatClassic2 divides by 100 on every client but those two, behind its downscaleThreat option, which defaults on and is described as "downscale threat so 1 damage = 1 threat" (dfherr/ThreatClassic2 core/core.lua UpdateThreatData and core/config.lua, read 2026-10-17). TrackerModule_Threat.lua divided only by 1,000 for its k display, so 6,294 threat on Classic Era showed as 629.4k, and the TPS graph was 100 times high too. It now divides by THREAT_SCALE: 1 where WOW_PROJECT_ID == WOW_PROJECT_MAINLINE or Recount.IsMidnightClient, 100 elsewhere. The retail and Forever scale rests on ThreatClassic2's code, not on a Blizzard document (not verified in game). Fights saved before the fix are divided down once when the saved data loads (a wrap of Recount.LocalizeCombatants), peaks and TPS series both, on Classic clients only. Each combatant is marked ThreatScaled once rescaled or once the poller records for it, so a value on the new scale is never divided again. The mark holds the divisor (100 on Classic, 1 elsewhere) rather than true, so a later correction to the scale can tell what saved values were divided by (Peer Review, thread ef07ad9f, F4). MoveFights points LastFightData and Fight1 at one table, so the rescale divides each table once however many keys reach it; otherwise that fight would end up 10,000 times low if saved data keeps the sharing across a reload, which is not verified (F3).
  • A healer with a friendly target recorded no threat. The poller read each member's threat against their own target only, and skipped them when it was not hostile, so a healer targeting the tank never appeared in Threat. It now falls back to the target's target, the same targettarget ThreatClassic2 uses for a friendly target. Each member is still read against their own target, where ThreatClassic2 reads everyone against the player's target, so a player on a different mob shows their threat on that mob; the new Live Threat mode (above) is the ThreatClassic2-style view.
  • A bar whose value fell to zero stayed on the main window at its old value. me:RenderPane in GUI_Main.lua dropped the combatant from its lookup but looked for the bar by comparing each row's name with the combatant's record, which never matched, so the bar stayed until the mode or fight changed. Live Threat shows it whenever someone's threat on your target goes; whether any other mode reached it in play is not traced. Rows are now matched by identity, since the sorted table holds the lookup's own row tables. Recount:ReportData, which adds to the same tables, likewise never removed a row whose value had fallen since the last redraw, so a chat report could send it; it now drops every row it did not refresh. Because the report writes the new values into the window's rows, the next redraw saw nothing changed and skipped setting the bar scale, so after a report the bars stayed scaled to the old top value until some value moved; ReportData now sets MaxValue from the top row it sorted, through one sortRows helper that me:RenderPane shares so the two cannot drift apart (Peer Review, thread 28e0c74f, B2). Rows from a previous mode or fight cannot reach a report: Recount:SetMainWindowMode and every fight-menu choice empty both tables first. Found answering Peer Review's question on the self-audit (thread 36c733ea).
  • The Threat bar menu offered a realtime graph that never moved. The Threat mode gave realtime settings ({"Threat", "'s Threat (k)"}), so its bar menu listed "Show Realtime Graph (Ctrl Click)" and a Ctrl+click opened a window registered on Tracking["Threat"]. Nothing ever calls that entry: only the combat-log handlers feed realtime stats, for damage, damage taken, healing and healing taken, plus five timer stats. The window stayed flat for the whole fight. The mode now has no realtime settings, so the entry is gone and a Ctrl+click opens the threat graph like a plain click. Found by Peer Review (thread 2af65df6, P1).
  • A shaman from another realm got no credit for Damage Prevented. TrackerModule_Mitigation.lua read the Stoneskin caster with UnitName, which returns the realm separately, while combatants are keyed by the combat log's Name-Realm. The lookup now joins them through the new Recount:UnitCombatantName in roster.lua, which the threat module and Recount:FindOwnerPetFromGUID use too, in place of three spellings of the same join (Peer Review, thread ef07ad9f, F5). It joins only a non-empty realm and never on Forever, where UnitName's second return is a surname. Forever is tested as IsMidnightClient and not IsRetailGame: my first version skipped on IsMidnightClient alone, which is also true on retail 12.0+, where the second return is a realm, so it would have stopped joining realms there (found on this session's self-audit). FindOwnerPetFromGUID had joined any second return, so an empty realm gave the owner Name- and, on Forever, a party or raid pet's owner had their surname joined to their name; either way the pet was filed under an owner who does not exist. That Forever's second return is a surname is Blizzard's own reading: Forever's NameUtil.FormatUnitNameForDisplay takes local name, surname = UnitName(unit) and joins the two with CHARACTERNAME_SURNAME_SEPARATOR (wow-ui-source-forever at bd2470a, Blizzard_FrameXMLUtil/Camelot/NameUtil.lua; found by Peer Review, thread a4876f8a). The same file says that with RegionalUniqueNamesEnabled() the first return can already hold name and surname together; whether that bare first return matches the combat log's name on Forever is not verified. It is also not reachable in play as far as the README says: on Forever, Damage Prevented and threat have no data source and stay blank, and FindOwnerPetFromGUID is reached only from Recount:DetectPet on the combat-log path, so the Forever half of this entry is a correctness fix with no visible effect today (that DetectPet never runs on Forever is not traced). Known cost: pets already saved under a wrong owner name (Name- or a surname-joined owner) stay under it; nothing migrates them, and they go with Reset Data, which deletes every combatant.
  • Deleting a combatant left their guardians mapped to them. Recount:DeleteGuardianOwnerByGUID indexed GuardianReverseGUIDs with the record it had just read from it, which matched nothing, so it never removed a GUID. It now walks each record's GUIDs, with pairs because the first GUID is stored at index 0.
  • Mana Given and Dispels could raise for a combatant with no row in the chosen fight. Both check only that the combatant exists, and Recount:MergedPetAmount and Recount.MergedPetBreakdown indexed the fight row unguarded. Both helpers now read a missing row as empty. Found by Peer Review (thread 71c1a081).
  • Fifteen modes could raise for a combatant with no row in the chosen fight, and so could the Activity tooltip. The main window lists combatants, not combatants with data for the selected fight, and these returners checked only that the combatant existed before indexing data.Fights[CurDataSet]: Dispelled, Interrupts, Interrupted, Ressers, CC Breakers, Damage Prevented, Totems and the eight power-gain modes (Mana Given was already guarded). Each now reads zero. Every returner and tooltip in Recount_Modes.lua and the seven modules now gets the row from one Recount:CurrentFight(data), which returns nil when there is no combatant, no Fights table or no row for the selected fight, in place of the two-part guard copied into about 25 functions, so a new mode cannot be written with half of it (Peer Review, thread dca25a1a, F3). The main window's bar and report loops in GUI_Main.lua use it too; two of their three copies skipped the Fights check. The detail window's summary page (Recount:UpdateSummaryMode) read the row unguarded and raised for a combatant with no row in the chosen fight; it now shows zeros. TooltipFuncs:ActiveTime read TimeHeal and TimeDamage off the same unguarded row. Found by the new modes_spec sweep below, which raised for each.
  • The graph window's "add all" showed only one line when the graph was closed. Recount:AddAllToGraph called me:AddCombatantToGraphData once per listed combatant, and each call restarted the comparison when the graph window was hidden. The window is only shown by the SetGraphData after the loop, so every combatant restarted it and only the last one was plotted. AddAllToGraph now decides once whether to start a new comparison (none running, graph hidden, or a different mode) and then adds everyone; the helper is gone. It still adds the main window's mode and rows, where an Alt+click follows the pane that was clicked, since the graph window's button has no pane of its own; so a comparison started from the lower pane or the tab window in another mode is replaced, not added to (Peer Review, thread dd45be6d, X1; pinned by a spec). The existing interactions_spec example checked only the graph's title, so it never saw this; guimain_spec's "adds each listed combatant" failed on the old code (desk run 20261018-083332.940) and passes now. Found writing that spec (thread 4dd1717d, A1).
  • "Add all" to the graph raised for a combatant with no time data. TimeData is created only once time data is recorded, and the Time Data filter is off by default for grouped and ungrouped players, so a groupmate can have none. The restart branch indexed it unguarded, while the other two graph paths checked it. Raised without the check (desk run 20261018-083415.222), passes with it. Found by Peer Review (thread ffbf1592).
  • Dead branches removed. AddSortedTooltipData's percent = 100 for a zero total could not run, because total starts at Epsilon. SpellAuraDispelledStolen's SPELL_DISPEL_FAILED check could not run, because the dispatch table in Tracker.lua sends that event to SpellAuraDispelFailed. ThreatReturner had two identical returns. The mitigation module's roster handler checked UnitGUID before calling rescanUnit, which checks it (and secrecy) itself; the handler now leaves that to rescanUnit.
  • A normal melee swing could be labelled as an extra attack. After SPELL_EXTRA_ATTACKS (Windfury, Sword Specialization) Tracker.lua takes the next damage event as the trigger and labels the next Melee "Melee (Windfury Totem)" or "Hamstring (Windfury Totem)", for up to 5 seconds. Published Classic combat logs (magey/classic-warrior #7, magey/forever-warrior #28) show the proc event comes before the trigger's damage and the extra swing within ~200ms, which that order handles. But a Slam's damage lands after the extra swing, so the extra swing was taken as the trigger and the normal swing 2-3 seconds later took the label. The window is now 1 second (EXTRA_ATTACK_WINDOW), and a new proc replaces a pending one older than that instead of being ignored behind it. The first Melee inside the window is now always the labelled swing: when it lands before any trigger damage (Slam) it is labelled "Melee (Windfury Totem)" instead of being taken as the trigger and leaving the proc unlabelled (Peer Review, thread dca25a1a, W1). The cost: after a proc off a white swing whose damage is logged after the proc, the trigger swing takes the label rather than the extra one; both are Melee, so the count and name are right but the label sits on the other swing's damage. The order for a proc off a plain white swing is not in either log. Pending procs are now keyed by GUID rather than name, because the damage path looks them up after renaming a pet to Name <Owner>, so a pet's proc was never labelled (F1). Not yet verified in game.
  • A mode registered twice was listed twice. Recount:AddModeTooltip appended unconditionally; it now replaces an entry with the same name, keeping its place in the list. This also means another addon that registers a mode under a name Recount already uses now replaces Recount's mode instead of listing beside it (thread 6048156e, A3). Found by the duplicate-listing check added to the revision specs after Peer Review's F5 (thread dca25a1a). AddModeTooltip and Recount:SetupMainWindow now share one findMode lookup by label (thread 6048156e, A2): SetupMainWindow's seven copies of "find the optional mode, add it if its module is on, remove it if off" are one loop over an OptionalModes list, and a removed mode is taken out with table.remove instead of being set to nil and closed up by a second loop. Recount:GetModeIndex moved to Recount_Modes.lua and is now the one lookup by label for everything else: GUI_Main.lua's modeIndexOf (the tab bar) is gone, and Recount:SetMainWindowModeByLabel (the key bindings) calls it. It tries the label as shown, then the label as an English locale key (thread 88a80cd4, B1). The old GetModeIndex matched either in one pass, so a locale key whose translation was an earlier mode's shown label picked that mode. SetMainWindowModeByLabel read L[label], which made AceLocale report a missing entry for any label that is not a locale key; it reads with rawget now, as GetModeIndex already did.
  • The detail window's summary could raise after its combatant was deleted. Deleting a combatant from the bar menu left the detail window open on them. Clicking the summary's Pet line or its Outgoing/Incoming toggle then rebuilt the summary for MainWindow.Selected, which still named the deleted combatant, and Recount:UpdateSummaryMode read data.Pet with no record. Recount:DeleteCombatant now hides the detail window when it shows the deleted combatant, and UpdateSummaryMode returns when there is no record. Found by Peer Review (thread 88a80cd4, B3).
  • Hovering a plotted compare graph anchored its crosshair and tooltip to the wrong object. The graph's OnUpdate handler names its frame graph, but three calls still passed self, which inside Recount:CreateCompareWindow is the Recount addon object, not a frame: the two hairline:SetPoint anchors and GameTooltip:SetOwner. They now pass graph. What the client did with the addon object as an anchor is not verified in game. GetCursorPosition is now cached as a local.
  • The compare graph window was English only. Every label, button, dropdown entry, status line and tooltip in GUI_CompareGraph.lua was a literal; all 43 now go through the locale, with new enUS keys, so locale_spec checks them. Numbers in text use format keys (Fight %d (%ds), Showing %d series). Found by Peer Review (thread 88a80cd4, N2), which named the Fight filter's four.
  • The Titan Panel button had its own copy of the fight-row guard. It now reads the row through Recount:CurrentFight. Its or "OverallData" fallback is gone; CurDataSet is set at load. Found by Peer Review (thread 88a80cd4, N1).
  • "Top 3" tooltips listed one row three times. Recount:AddSortedTooltipData looped for rank = 1, num but read SortedData[i], where i is the count of rows collected, so every line showed the last-sorted entry with numbers 1, 2 and 3. It now reads SortedData[rank]. Every mode's tooltip goes through it.
  • A grouped pet or totem whose owner was never seen lost all its numbers. Recount:AddCombatant gave a grouped non-player with no known owner no type (the branch was commented out), and AddAmount drops everything for a nil type. The common case is a party member's totem already standing at a /reload, whose summon Recount missed and which has no unit token to find the owner by. It is now typed Unknown, which is recorded by default and hidden from the bars, so its data is kept though it cannot be tied to a shaman.
  • English players saw "Maelstorm" for Maelstrom. The mode name, its key binding's name, the detail titles and the tooltip's Top 3 headings came from enUS keys spelled Maelstorm, with the value true. The keys stay as they are, since every locale and Bindings.xml use them; the five enUS entries now have values spelled Maelstrom. GetModeIndex falls back to the locale key, so the binding still selects the mode, and the short tab name Mael follows because SHORT_MODE_NAMES is keyed by locale key. Saved tabs hold the shown label, so a tab saved as "Maelstorm Gained" would have shown the initials fallback MG (Mana Gained's short name) until clicked; Recount:LoadMainWindowData now renames every saved tab whose label resolves to a mode to that mode's shown label, which also renames a tab saved with an English label when the addon is later run in another language (not the reverse, since only English labels are locale keys). Found on the self-audit (thread d149f829, S4); the saved-tab half was found on this session's own audit.

Documentation

  • README, CurseForge description and docs/FEATURE_IMPROVEMENTS.md describe the Totems mode and that a totem's mana, dispels and overhealing now count for its shaman with Merge Pets on. Both player docs list Totems among the always-available tracker modes, among the modes with no keybinding (Bindings.xml has none), and among the modes that stay blank on Retail Midnight and Forever. The CurseForge Recent Updates gains v1.20.0 and drops v1.19.2, keeping five. Both player docs now describe the grouped mode menu and the graph window's + (add everyone) button, and docs/FEATURE_IMPROVEMENTS.md records the grouped menu.

Testing

  • modes_spec: Totems. The shared fixture now has Healbot as a shaman dropping two Searing Totems and a Windfury Totem, so the per-mode sweep covers Totems; value specs check the count, the per-totem breakdown, the bar and detail, and that a non-shaman's summon, Feral Spirit, a totem's own summon and a caster with no flags are all left out. With Record Combat Only on: nothing is recorded before a fight, a totem 30 seconds before the pull counts in that fight, one 121 seconds before never counts, a held totem counts once however many fights follow, a stale held totem is dropped from the list (read through the spec-only Recount:TotemsHeldCount), recent totems still count after stale ones are dropped, and a reset forgets held totems. The prune and reset specs were each seen to fail with their fix removed. TrackerModule_Totems.lua at 100% line coverage; 933 passed.
  • modes_spec: totems credited to their shaman like pets, and Top 3 tooltip lists. A totem's mana given, dispels and overheal count in its shaman's Mana Given, Dispels, Overhealing Done and Healing detail with Merge Pets on and are left out with it off; the Top 3 tooltip lists three distinct rows in rank order. 940 passed. Every changed line in Recount_Modes.lua, TrackerModule_PowerGains.lua and TrackerModule_Dispels.lua is covered (desk coverage run 20261017-081521.772-3076417322); those files as a whole are at 87.8%, 96.1% and 90.7%, the rest being older guard returns and pet tooltip branches.
  • modes_spec and mitigation_spec: the totem audit leftovers. A totem's mana out of combat with Record Combat Only on changes nothing and starts no fight; the Healing tooltip lists two totems as "+1" with both named, and a lone pet by name with no count; a combatant with no row for the fight reads as zero and an empty breakdown; deleting an owner forgets every guardian GUID, the first included; a cross-realm shaman's Stoneskin credits Name-Realm. combatlog_spec's idle-sweep spec turns Record Combat Only off, since its ticks leave combat and it is about the sweep, not the gate. None was run against the old code to watch it fail. 946 passed, 0 failed (desk run 20261017-084224.337-661286822). Under the coverage runner the threat spec "clears its samples when a new fight starts" fails (6 samples, expected 5) with any set of targets, while it passes in the plain run and alone; the cause is not established and it is on the todo list.
  • combatlog_spec: extra attacks. The label lands on the extra swing after an instant trigger; a normal swing 2.5 seconds after a Slam-ordered proc stays plain Melee; a fresh proc replaces one 3 seconds old that never saw its swing. By reading, not by running: the second fails on the old 5-second window; the third passes on the old code and fails only if the window shrinks without the stale-proc replacement. 949 passed, 0 failed (desk run 20261017-085721.316-3048413046).
  • combatlog_spec, modes_spec, mitigation_spec and env_recount: the answers to thread eac2bef3, and 100% coverage. A giver out of combat with Record Combat Only on is stamped active but records nothing, and survives the idle sweep; it failed with the gate moved back above the stamps. A second idle-sweep spec runs with Record Combat Only on and combat held across the ticks. env_recount's core load is now wrapped in the harness's retainDuring, and each reset calls clearLoaded() before reinstalling globals; retainDuring alone kept every load's frames alive and tripped the 12,000 live-frame guard in every spec. With both, the threat spec "clears its samples when a new fight starts" passes under the coverage runner, which is two runs, not an established cause. modes_spec adds a sweep of every mode for a combatant with nothing to show (which found the fifteen crashes above), specs for the branches the shared fixture does not reach, revision tracking, the optional-mode toggles of each module, the Merge Absorbs pet share (failed with the owner's absorbs dropped from the share) and a check that the second Searing Totem was tracked before the delete spec asserts it gone. mitigation_spec adds the Stoneskin label on a client whose C_Spell has no GetSpellInfo. Recount_Modes.lua and the Dispels, PowerGains, Interrupts, CCBreakers, Resurrection, Mitigation and Totems modules are at 100% line coverage (desk coverage run 20261017-092334.638-1930624320); 1047 passed, 0 failed (desk run 20261017-092721.191-2973030455).
  • combatlog_spec and modes_spec: thread dca25a1a. The Slam-order spec now expects the extra swing labelled "Melee (Windfury Totem)". New: a swing 2.5 seconds after an unmatched proc stays plain Melee (failed with the window set back to 5 seconds); two swings after a white-swing proc label one (failed, with the Slam spec, with the label branch requiring a captured trigger as before); a pet's extra swing is labelled on the pet (failed with procs keyed by name). The revision specs now check that a module's reload lists no mode twice (failed for all six modules before the AddModeTooltip fix). 1050 passed, 0 failed (desk run 20261017-093848.205-2880153567).
  • modes_spec: one guard, and the optional-mode list. The "nothing to show" sweep adds a combatant record with no Fights table to every mode's returner and tooltip; with Recount:CurrentFight reduced to the old one-part check it failed 57 times (desk run 20261017-095003.688-2462097094). A new spec switches three optional modes off at once and checks the list has no gaps and keeps its order. interactions_spec opens the summary for a combatant with no row in the fight; it failed with the old unguarded read (desk run 20261017-095842.977-2105790810). 1053 passed, 0 failed (desk run 20261017-095718.924-3949104247). Recount_Modes.lua and the seven modules are at 100% line coverage, and the nil-GUID return in SpellExtraAttacks is covered (desk coverage run 20261017-095316.243-2918266046).
  • interactions_spec and guidepth_spec: thread 88a80cd4. On a simulated translated client, GetModeIndex and SetMainWindowModeByLabel find a mode by its English key; a shown label wins over a locale key that translates to another mode; an unknown label leaves the mode alone and reports no missing locale entry. The last two failed against the old one-pass lookup and L[label] (desk run 20261017-100744.642-1715742182). Deleting the combatant the summary shows closes the detail window, and a click on the summary's Pet line then does not raise; both failed with the two guards removed (desk run 20261017-101039.429-4089132674). Hovering a plotted compare graph shows the readout owned by the graph frame; it failed with self put back (desk run 20261017-101852.156-2856416235). 1060 passed, 0 failed (desk coverage run 20261017-102156.695-3378063772, which runs the suite). Recount_Modes.lua is at 100%. Every line changed in GUI_Main.lua, GUI_Detail.lua, GUI_TitanPanel.lua and GUI_CompareGraph.lua is covered, except the compare graph's Fight dropdown entries and Fight Filter tooltip, which no spec opens. Those files as a whole are at 81.0%, 79.4%, 95.3% and 80.7%.
  • modes_spec, guidepth_spec and interactions_spec: thread d149f829. The five Maelstrom entries read Maelstrom in English, and the old-spelling key, the binding's SetMainWindowModeByLabel call and the short name all still reach the mode. The compare graph hover spec also checks both crosshair anchors are the graph, and a click on the deleted combatant's summary Outgoing/Incoming toggle does not raise; both failed with self put back on the anchors and the summary's early return removed (desk run 20261017-103050.517-2685381676). tabs_spec renames a saved "Maelstorm Gained" tab to "Maelstrom Gained" with short name Mael and leaves a label no mode answers to alone; it failed with the rename disabled (desk run 20261017-103859.468-3846036294), and the Maelstrom specs failed with the enUS value put back to true (desk run 20261017-103927.787-100410570). 1063 passed, 0 failed (desk run 20261017-104039.426-2487061454).
  • modes_spec: totems known by spell name. The fixture names Searing, Windfury and Fire Elemental Totem through the harness's wow.spells. New: a shaman's Arcanite Dragonling is not counted; a Searing Totem cast at a later rank's id counts under the shared name; with no totem names from the client nothing is counted or held. All three, and the Feral Spirit spec, failed with the spell check removed (desk run 20261017-123221.592-1176617685). The non-shaman spec now also casts Windfury Totem, since a summon without a totem's name no longer reaches the class check. A Season of Discovery Decoy Totem counts; it failed with its id removed from the list (desk run 20261017-124439.880-501608816). TrackerModule_Totems.lua at 100% line coverage; 1067 passed, 0 failed (desk coverage run 20261017-124323.695-136428143, which runs the suite).
  • interactions_spec: pet threat, Live Threat, the rescale and the checkbox. A solo player's pet is read under Fluffy <Testchar>, the name the fixture's combat log stored it by; a party member from another realm under Name-Realm; a unit or pet owner with no name is skipped. With pets hidden and merged, Threat still gives the pet and its owner bars. Live Threat reads everyone, pet included, against your target, falls back to your target's target, is empty with no hostile target, drops someone whose threat is gone while their fight peak stays, and clears when a fight starts; its tooltip has the threat and aggro share, the threat alone when the client gives no share, and only the name with no reading. A saved peak of 629.4 and a TPS series are divided by 100 once and not again, threat recorded on the new scale is left alone, and a combatant with no fights is marked. EnableThreatRequirements turns on every setting it names. modes_spec lists Live Threat with the modes its fixture cannot feed, and tabs_spec's short-name sweep found its missing short name. A Live Threat bar's tooltip, bar menu and plain click are driven too. None of these was run against the code without the change. TrackerModule_Threat.lua at 100% line coverage; 1099 passed, 0 failed.
  • interactions_spec, config_spec and roster_spec: thread ef07ad9f. EnableThreatRequirements turns Record Combat Only back on. Ticking the Threat box with the settings open shows the filter boxes it turned on, and a Show click afterwards keeps them on. A fight two keys share is divided once. The rescale and the poller both mark with the divisor, 100. A Live Threat bar and report line show with an older fight selected that has no row for the player. UnitCombatantName joins another realm, leaves an empty realm off, never joins on Forever, still joins on retail 12.0+, and returns nothing for a nameless unit. The raid pet, party, party pet and focus branches of FindTargetedUnit and roster.lua's revision line are now driven. None of these was run against the code without the change. TrackerModule_Threat.lua and roster.lua at 100% line coverage; 1113 passed, 0 failed (desk coverage run 20261017-160941.806-949774343, which runs the suite). The plain suite run twice hit the 60-second per-file limit in modes_spec while the CPU read 100% with other test runs going; with --timeout 300 it passed.
  • interactions_spec: stale bars, stale report rows and the bar scale (threads 36c733ea, 28e0c74f). A Live Threat bar goes once its threat reads zero; a combatant zeroed since the last redraw is left out of a chat report; a report that refreshed the values leaves the bars scaled to the new top value. All three failed without their fix (desk runs 20261017-163400.745-1569536396 and 20261017-171728.449-2423574238). 1116 passed, 0 failed (desk run 20261017-171533.327-3281139599, with --timeout 240; two default runs before it stopped modes_spec at the 60-second per-file limit with the CPU at 99%).
  • interactions_spec and modes_spec: threat as ThreatClassic2 shows it, the click, and doubled bars. Live Threat returns the threat and the share; a bar reads the threat and (80%), or the threat alone when the client gives no share; a chat report line reads the same and its total has no summed shares. A plain click on a Live Threat or a Threat bar opens the graph window and no detail window. Threat's tooltip and bar show the peak as real threat. Two specs for the doubled Live Threat bars reported in game the same day: one combatant gets one bar across readings that fall to zero and come back, and across a pull that Feign Death splits into several fights; reverting the row match in me:RenderPane reproduced the doubling (taken from an earlier session's account and not re-run, so not verified). The click and bar-text specs were not run against the code without the change. 1122 passed, 0 failed (desk run 20261017-183921.639-3932648241, --timeout 240; a default run before it stopped modes_spec at the 60-second limit with the CPU at 97%).
  • interactions_spec: thread 2af65df6. A Threat or Live Threat bar's menu has no realtime entry and a Ctrl+click on one opens no realtime window; a Damage Done bar's menu still has both Details and the realtime entry, which proves the absent keys are spelled as the menu spells them. A Classic reading of 629,400 saves a 6.294 peak and the Threat bar reads 6,294. A share of 79.6% shows as 80% from the returner, on the bar and in a report line. A Live Threat report's header is Live Threat: <target> and it sends no total with the total bar on. 1124 passed, 0 failed (desk run 20261017-190650.005-12603724).
  • interactions_spec: thread eaa2b2be. New: Live Threat shows no Total row while Damage Done, with the same combatants, shows one; a Damage Done chat report still sends its total line. The rescale specs expect 6.294 rather than 6.3. Each fix was then broken on its own and its spec seen to fail: the realtime settings put back on Threat (the menu check, desk run 20261017-192049.446-2853367936); only the Ctrl+click path forced to open a realtime window (both Ctrl+click checks, desk run 20261017-192305.211-347880913, which also settles that the spec's Ctrl key reaches GUI_Main's cached IsControlKeyDown and that a realtime window is detectable); the Total-row gate, the report subject, the share rounding and the KThreat precision (one spec each, desk run 20261017-192516.338-1484307619); the report's total gate (desk run 20261017-192721.730-3531921440). TrackerModule_Threat.lua at 100% line coverage; GUI_Main.lua at 82.45%, where the uncovered lines this work touched are the Battle.net whisper branch of the report header and the report total's per-second figure (desk coverage run 20261017-193146.180-855057418). The third rescale assertion ("divides a fight two keys share only once") now checks the exact 6.294, that the result is not the old rounded 6.3, and that Fight1 still shares the one table; Writ's test-weakening guard had refused a plain 6.3 -> 6.294 swap there (thread 7d5d14fc, closed). Whole suite 1132 passed, 0 failed (desk run 20261017-225926.452-2918418133).
  • interactions_spec: the Battle.net report and the rest of the report header (threads eaa2b2be C1, 5dda0799 B3). A Damage Done report to a Battle.net friend whispers the header, a total with its per-second figure and the bars, all to that friend and none to chat; it runs twice, once through C_BattleNet.SendWhisper, the function GUI_Main.lua prefers, and once through the BNSendWhisper fallback with no C_BattleNet.SendWhisper. At harness 943bc1c the C_BattleNet.SendWhisper variant asserts on the harness's own wow.bnWhispers, and passes a BNSendWhisper that raises, so a GUI_Main that preferred the global fails it (seen to fail with line 29's order flipped). The fallback variant keeps its own BNSendWhisper, because the harness's forwards to the C_BattleNet.SendWhisper that variant hides. Every load resets the env, which rebuilds both, so nothing carries into a later load (threads 7b76cf8b, e7912e7f). It first failed with the header's whisper branch sent to chat instead (desk run 20261017-201043.560-2332766922). A Damage Taken report's total line is exactly 0. Total 300 (100%), with no rate. A report on a numbered fight is headed Recount - Damage Done for <fight name>, and with no fight name sends no header. A mode registered with its own total and report title, whose bar rate is text, reports exactly its title, 0. Total 1000 (100%) and 1. Testchar 500 (fast, 50%). Every line of Recount:ReportData is now covered; GUI_Main.lua is at 83.42% (desk coverage run 20261017-204238.927-3006797611, which ran the suite before the rescale assertion above was settled). The rest of GUI_Main.lua's uncovered lines are older than this release: the fight dropdown entries, the compare-graph bar click, the tab and divider menus, the large-number formats and similar, which no spec drives yet.

Older versions (v1.16.0 to v1.19.6) are in CHANGELOG_ARCHIVE.md.

This mod has no additional files