mirror of https://github.com/ppy/osu
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:
commit
cbd4b91feb
|
@ -21,8 +21,9 @@ public static Score CreateScoreFromReplayData(this ICreateReplayData mod, IBeatm
|
|||
{
|
||||
User = new APIUser
|
||||
{
|
||||
Id = APIUser.SYSTEM_USER_ID,
|
||||
Id = replayData.User.OnlineID,
|
||||
Username = replayData.User.Username,
|
||||
IsBot = replayData.User.IsBot,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -156,7 +156,7 @@ private void load(AudioManager audio)
|
|||
if (Score != null)
|
||||
{
|
||||
// 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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue