Skip to content

Count a swing only when the log shows it landing - #60

Merged
Shaydera merged 2 commits into
developmentfrom
count-only-landed-swings
Nov 13, 2026
Merged

Shaydera merged 2 commits into
developmentfrom
count-only-landed-swings

Conversation

@Shaydera

Copy link
Copy Markdown
Owner

Damage Done now counts a melee swing only when the pull contains its SWING_DAMAGE_LANDED copy. This also covers a swing a shield took whole. Swings on units logged neutral never get a copy, and now and then a copy is simply missing; those swings no longer count. The killing blow whose copy lands after ENCOUNTER_END was already left out; this rule generalizes that case. Pulls whose log writes no landed copies at all keep counting the attacker lines.

Since nothing after a pull's end matters any more, loading no longer reads past it. The engine also no longer reloads pulls whose tail was cut.

A second commit credits an Evoker's support share of a hit a player dealt themselves (e.g. Seriously Sharp Seashell ticks) to the Evoker in reattributed mode. The player's own hit still does not count, so nothing is taken from them.

No index format bump: the index only stores the pull list, and both changes apply when a pull is loaded.

A melee swing is written twice: the attacker's SWING_DAMAGE and the
SWING_DAMAGE_LANDED copy. Some swings never get a copy inside the pull:
the boss's killing blow lands after ENCOUNTER_END, swings on units
logged neutral get none at all, and now and then a copy is simply
missing. Damage Done now leaves out every swing (and every swing a
shield took whole) without a landed copy in the pull, instead of only
those whose copy follows the end. Pulls whose log writes no landed
copies at all keep counting the attacker lines.

Nothing after a pull's end matters any more, so loading no longer reads
past it and the engine no longer reloads pulls whose tail was cut.
Items like Seriously Sharp Seashell make a player damage themselves, and
an Evoker's buff on that player still logs its support line for those
ticks. The hit itself is no Damage Done, but the Evoker's share of it now
counts for the Evoker in reattributed mode; nothing is taken from the
player, whose hit never counted.
@Shaydera
Shaydera merged commit 272b896 into development Nov 13, 2026
3 checks passed
@Shaydera
Shaydera deleted the count-only-landed-swings branch November 13, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant