Count the hits behind a card's and a power's damage #332
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!332
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/card-targets-hit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A damage total on its own cannot be read.
Playsis not a stand-in, because oneplay of a multi-hit or AoE attack lands many hits — so 378 damage on a card
could be six heavy swings or forty chip hits, and nothing in the aggregate said
which.
Every other damage-bearing aggregate already carries that count beside its
totals:
EnemyAggregate.DamageInstances,CardOrbAggregate.TargetsHit,PotionRunHistoryEntry.TargetsHit.CardAggregatehad the full damage set withno hit count, and
PowerAggregateacquired the same gap when #329 gave itdamage for Panache.
Approach
Both count one per observed
DamageReceivedEntry, incremented on the line nextto the totals themselves so the two cannot drift apart.
The name is inherited from its three siblings rather than exact: it counts
hits, not distinct enemies, so a 3×5 attack on one enemy counts 3. The field
comment says so plainly rather than letting the name imply otherwise. Renaming
the three existing fields would be a persisted-schema change and is out of scope
here.
Surfaces
it came from (
78 / 12→6.5), the same shape Damage share usesdirectly above it, so the average can be checked rather than trusted.
These separate the heavy swing from the chip attack that reached the same
total.
Verification
card-targets-hit-run.jsonfixture covering both aggregates, withSchemaLoadingTestsassertions historical and resumable.its damage intact and zero hits, rather than failing.
No new Harmony targets — both write points are inside handlers that already run,
so hot reload was sufficient (435 classes patched, 0 failed).
🤖 Generated with Claude Code