Closed ZacheryJohnson closed 4 months ago
I think we have a patch field in the match data (which is controlled by dotaconstants). That would save us having to define timestmaps here, but I think this is fine (we also have something similar for showing minimaps)
Patch 7.34 changed the draft order and a corresponding mapping was not added to OpenDota. This PR adds support for this new draft order.
Tested by using the Battle Cup match 7580513318, which was played on 2024-02-10.
The draft should look as follows (the Dota client has some issues when jumping ahead in draft in replays it seems; the last pick for Dire was a Dragon Knight)![draft](https://github.com/odota/web/assets/15884513/9523dbbd-195f-4633-a0f5-90cfca76a679)
Prior to this change, the draft of a parsed game on OpenDota incorrectly showed the following:![before](https://github.com/odota/web/assets/15884513/612ad4ed-5c10-4a3b-bdfd-ad5cb2e6ad4d)
After this change, the draft appears correct in a parsed game:![after](https://github.com/odota/web/assets/15884513/8eb4e0da-7069-43a9-9109-c89e876d8116)
The Team Liquid v Azure Ray game, played today, also now displays correctly:![tl-xg](https://github.com/odota/web/assets/15884513/030c013d-97d1-4fb0-be35-3b9b500c546e)
Happy to test any additional matches as desired.
Note: the timestamp correlates to Tuesday, August 8, 2023 22:46:00 GMT, which I correlated to build ID 11896549 in Dota's SteamDB entry. I'm not sure if there's a more formal way to get an exact timestamp on when this new draft order should take effect, but I'm happy to do more digging if we'd prefer a more precise time.