Skip to content

Show negative stuns as zero on the match page - #3396

Merged
howardchung merged 1 commit into
odota:masterfrom
geracosta:stuns-display
Oct 3, 2026
Merged

howardchung merged 1 commit into
odota:masterfrom
geracosta:stuns-display

Conversation

@geracosta

@geracosta geracosta commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

the stun counter in the replay can go below zero, which is what #2870 and #2613 show (-0.66 for the pangolier in 6270285586, -0.23 for the bounty hunter in #2613's match). per the discussion in #2870 the api keeps the value as it is in the replay, and this only changes what the match page shows:

  • performances: the stuns cell shows - like any other 0, and the team total and the bars use 0 too, so one negative doesn't shift the bars of the rest
  • fantasy: the stuns line scores 0 instead of a negative, and the total follows

player pages (records, histograms, trends) aggregate on the server, so they're left as they are.

before / after on 6270285586.

performances, before:

performances before

after:

performances after

fantasy, before:

fantasy before

after:

fantasy after

build and typecheck pass, testcafe 74 passed.

Closes #2870
Closes #2613

The stun counter read from the replay can go below zero (odota#2870, odota#2613).
The API keeps that value as it is in the replay, and the match page now
shows it as 0: the performances cell, its team total and bars, and the
stuns line of the fantasy points.
@howardchung
howardchung merged commit 7ccb42b into odota:master Oct 3, 2026
1 check passed
@geracosta
geracosta deleted the stuns-display branch October 4, 2026 01:27
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.

Incorrect Stun time statistics Negative Stun Duration

2 participants