1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 11:22:55 +08:00

Merge pull request #24678 from Nabile-Rahmani/bot-scores

Fix and use score user's IsBot property in results screen animation
This commit is contained in:
Dean Herbert 2023-08-30 14:00:35 +09:00 committed by GitHub
commit cbd4b91feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -21,8 +21,9 @@ namespace osu.Game.Rulesets.Mods
{ {
User = new APIUser User = new APIUser
{ {
Id = APIUser.SYSTEM_USER_ID, Id = replayData.User.OnlineID,
Username = replayData.User.Username, Username = replayData.User.Username,
IsBot = replayData.User.IsBot,
} }
} }
}; };

View File

@ -156,7 +156,7 @@ namespace osu.Game.Screens.Ranking
if (Score != null) if (Score != null)
{ {
// only show flair / animation when arriving after watching a play that isn't autoplay. // only show flair / animation when arriving after watching a play that isn't autoplay.
bool shouldFlair = player != null && Score.Mods.All(m => m.UserPlayable); bool shouldFlair = player != null && !Score.User.IsBot;
ScorePanelList.AddScore(Score, shouldFlair); ScorePanelList.AddScore(Score, shouldFlair);
} }