1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 23:37:26 +08:00

Fix incorrect order after bans

This commit is contained in:
Dean Herbert 2018-11-11 00:48:22 +09:00
parent 629657044d
commit 976180ecc2

View File

@ -103,6 +103,9 @@ namespace osu.Game.Tournament.Screens.MapPool
private void beatmapChanged(BeatmapInfo beatmap)
{
if (currentMatch.Value.PicksBans.Count(p => p.Type == ChoiceType.Ban) < 2)
return;
if (beatmap.OnlineBeatmapID != null)
addForBeatmap(beatmap.OnlineBeatmapID.Value);
}
@ -126,6 +129,9 @@ namespace osu.Game.Tournament.Screens.MapPool
var nextColour = (currentMatch.Value.PicksBans.LastOrDefault()?.Team ?? roll_winner) == TeamColour.Red ? TeamColour.Blue : TeamColour.Red;
if (pickType == ChoiceType.Ban && currentMatch.Value.PicksBans.Count(p => p.Type == ChoiceType.Ban) >= 2)
setMode(pickColour, ChoiceType.Pick);
else
setMode(nextColour, currentMatch.Value.PicksBans.Count(p => p.Type == ChoiceType.Ban) >= 2 ? ChoiceType.Pick : ChoiceType.Ban);
}