26 Commits
Author SHA1 Message Date
mm akzkak e8c8c774a3 Use Nampower event registration 2026-11-15 17:50:18 +01:00
mm akzkak 659fb13e1f Restore meter windows and saved views 2026-11-15 17:47:17 +01:00
mm akzkak 0198f1b741 Reduce redraws and batch pet updates 2026-11-15 17:42:34 +01:00
mm akzkak db2d664cb7 Guard automatic resets during combat 2026-11-15 17:36:33 +01:00
mm akzkak 9d6702e47f Credit totem damage to owners 2026-11-15 17:22:13 +01:00
Si Ha b46030a000 Add /cl reset; a manual reset mid-fight restarts the live fight as a fresh segment 2026-09-28 23:49:16 +02:00
Si Ha 7da485b8c0 Reset clears Current Fight and Overall (never a live fight, History kept); rename Clear Overall to Auto reset 2026-09-28 01:04:46 +02:00
Si Ha 43bffedc33 Add reset rules for joining/leaving a group and entering an instance, per-window in-combat mode 2026-09-27 20:01:23 +02:00
Si Ha 7e5f0425d8 Detect boss fights via BigWigs engaged modules and enable triggers, name saved boss fights by encounter 2026-09-27 19:56:21 +02:00
Si Ha 59fc9a0304 Isolate handler errors with /cl status diagnostics, remove dead code, rewrite comments as intent 2026-09-27 19:49:44 +02:00
Si Ha fdd1bfadc2 Bound saved data: name-keyed Overall targets, compact history on save, add Saved fights and Remember boss fights only options 2026-09-27 19:24:54 +02:00
Si Ha 702965c00e Cache spell names, parse DoT aura type without allocation, sample mob max health once per fight 2026-09-27 19:18:09 +02:00
Si Ha 2886bc7e1f Record absorbed/blocked/resisted amounts and glancing/crushing hits; pass melee resist arg 2026-09-27 19:08:57 +02:00
Si Ha 8c422b027b Record spell misses/resists and environmental damage from Nampower events 2026-09-27 19:05:24 +02:00
Si Ha e243ee7848 Count heals and dispels while player or group is in combat; share cached group-combat check 2026-09-27 19:02:00 +02:00
Si Ha fedcada0f0 Track effective healing with estimated overheal from target health 2026-09-27 19:00:04 +02:00
Si Ha ba328b641c Keep encounter open until player, group and pets leave combat (1.5s debounce) 2026-09-27 18:51:06 +02:00
kobeniiiiiiandClaude Sonnet 5 80d03d502c Add local threat estimation fallback, persist debug flag across sessions
The TWT_UDTSv4/TWTv4= server threat API only ever replies when a
recognized third-party threat addon is also loaded (confirmed against
both TWThreat's and KLHThreatMeter's actual source - neither implements
any reply logic itself, and neither needs a handshake, so the gate
isn't anything a message can unlock). Threat mode now falls back to
estimating threat locally from Aggregator's own tracked damage/healing
data (class + spell threat-coefficient approximations) whenever a poll
happens with no real reply - a real reply always overrides it the
moment one arrives.

Also persists /cl debug across relaunches (CombatLedgerDB.settings),
restored on PLAYER_ENTERING_WORLD ahead of any other file's handler for
that event - debug always resetting to off made it structurally
impossible to capture a fresh login's earliest behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 23:07:53 -05:00
kobeniiiiiiandClaude Sonnet 5 336221eb76 Fix healing double-count, add real Reflect damage tracking
SPELL_HEAL_ON_SELF was firing alongside SPELL_HEAL_BY_SELF/OTHER for
every heal landing on the player, double-counting it - no longer
registered.

Reflect/thorns-style damage (Retribution Aura, Thorns, etc.) now shows
as its own tracked ability, sourced from Nampower's dedicated
DAMAGE_SHIELD_SELF/OTHER event instead of being invisible or blended
into an unrelated spell's numbers.

Also adds debug logging to the boss-pull classification check for
future troubleshooting (this server doesn't tag dungeon bosses as
elite/worldboss, so pull announcements are known-limited for now).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 15:47:51 -05:00
kobeniiiiiiandClaude Sonnet 5 516d4f66a9 Add real per-cast DoT tracking, join-party clear prompt, fix phantom-encounter regressions
Adds a "Casts" stat for DoTs (distinct from tick count) sourced from
real cast events. Replaces the single "clear on join party" checkbox
with Always/Ask options, the latter showing a confirmation popup.

Fixes two regressions where a non-combat event (a cast, then a heal)
could lazy-start a blank encounter well after a fight had genuinely
ended, wiping the just-finished Current Fight display - neither casts
nor healing/cleanses can trigger a new encounter now, only tally into
an already-active one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 09:32:14 -05:00
kobeniiiiiiandClaude Sonnet 5 2f71d1bb43 Split DoT hits from ticks, add clear-on-join-party, boss-only pull announce
Splits direct-hit vs DoT-tick damage into separate Hits/Ticks (and
real Casts vs Ticks for pure DoTs) in the breakdown window, using
Nampower's per-event aura data plus real AURA_CAST cast counts.
Fixes a duration-inflation bug where nearby unrelated combat noise
kept encounters from trimming trailing idle time, and a regression
where the first hit of a fresh pull could be dropped entirely. Also
adds "clear Overall on join party" and narrows pull announcements to
boss-tagged targets only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 09:04:47 -05:00
kobeniiiiiiandClaude Sonnet 5 b3bd1c9925 Fix encounter-stop feeling delayed
- Removed the group-wait deferral on PLAYER_REGEN_ENABLED (matches
  GreedMeter's own approach - months of real use with no reported
  fragmented pulls, so the theoretical raid-fragmentation risk isn't
  worth delaying every single stop to guard against)
- The actual bug: RecordDamage/RecordAvoidance/RecordDebuffGiven/
  RecordInterrupt had no combat-state guard on their lazy
  StartEncounter(), so a stray trailing event after a real fight ended
  (a late DoT tick, splash damage) silently spun up a blank new
  encounter that immediately overwrote the just-finished fight's frozen
  summary - all Record* functions now guard consistently with
  AnyoneInCombat(), matching RecordHealing/RecordCleanse
- Bars now snap straight to their final value instead of smoothly
  animating when Current Fight has no live encounter running (i.e. it's
  showing the frozen last-finished result) - the data finalizes
  instantly, but smoothing could take up to ~1s to visually catch up

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 16:16:36 -05:00
kobeniiiiiiandClaude Sonnet 5 78cbaaf00d Header redesign, per-window auto-show/hide/grouped rules, and reliability fixes
- Header: drop the title bar, show full Mode/Segment words (adaptive width
  instead of jumping per-label), remove the redundant Options button
  (minimap right-click already covers it)
- Buttons: fix stuck press/hover colors for good by owning hover/press
  state via continuous OnUpdate polling instead of trusting discrete
  WoW mouse events, which this client drops once a click opens a new
  frame; also stop pfUI's own competing hover hook from fighting it
- Windows: per-window Auto-show/Auto-hide/Grouped-only rules (replacing
  the old global-only checkboxes) so e.g. a Threat meter can stay hidden
  until grouped and in combat while Damage stays up always; extra
  windows are now structurally identical to Main (no per-window close
  button - create/close only from Options); Mirror Main copies
  size/position in one click; minimap toggle and login/reload restore
  now respect these rules instead of ignoring them
- History: kept per-character instead of shared account-wide, with a
  one-time migration of old shared data
- Threat: Test Mode now fills Threat mode with dummy bars + the Pull
  Aggro At marker, matching every other mode
- Options: removed the non-working pfUI dock toggle, fixed a checkbox
  skinning gap, shrunk the window and added section dividers, updated
  screenshots/README for the new window-management additions

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 13:37:18 -05:00
kobeniiiiii e7e71bd2aa Stop phantom empty encounters spawning from post-combat noise
Aggregator.lua's Record* functions lazily called StartEncounter()
whenever none was active, with no check on whether anyone was actually
fighting - so a stray post-combat heal tick, HoT finishing, or mana
regen event (all real, all logged by Nampower, none of them combat)
would spin up a brand new encounter out of thin air right after a real
fight ended. It then sat there with near-zero data until the idle
timeout killed it, showing up in History as an empty "fight" that never
happened. Guard it with the same player-or-group UnitAffectingCombat
check already proven correct for the raid-clearing fix.

Also gate the idle-timeout fallback in Events.lua the same way the
regen-based finish already is, so a personal lull doesn't end an
encounter while the group is still genuinely fighting.
2026-08-20 22:31:40 -05:00
kobeniiiiii c5162efae6 Add encounter breakdown reports, fix raid encounter-boundary clearing, polish threat target swaps
- New Encounter Breakdown report window: bucketed damage/healing/taken
  time-series per saved encounter with a graph and leaderboard drill-down
- Fix encounters ending prematurely in raids: PLAYER_REGEN_ENABLED no
  longer force-finishes while other raid/party members are still
  UnitAffectingCombat - waits for the group to actually clear instead
- Threat mode no longer flashes to empty on target swap - holds the
  previous target's bars until fresh data lands, or 2s timeout if it
  never does
2026-08-20 22:19:38 -05:00
kobeniiiiii c4c0547284 Initial commit: CombatLedger v0.3.0
A combat meter for WoW 1.12 built on Nampower's structured combat
events instead of chat-log text parsing. Tracks Damage, Healing,
Damage Taken, Dispels, Debuffs Given, Deaths, and live Threat (via
this server's UnitDetailedThreatSituation addon-message API), each
with click-through per-ability/per-target breakdowns, across any
number of independent meter windows, plus Current/Overall/History
segments and a death recap.
2026-08-20 15:54:38 -05:00