mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +08:00
Merge pull request #28436 from omkelderman/fix-auto-pick-map-on-zero-ban-round
Fix auto picking maps on zero ban rounds
This commit is contained in:
commit
a8a2e543d5
@ -123,7 +123,12 @@ namespace osu.Game.Tournament.Screens.MapPool
|
||||
|
||||
private void beatmapChanged(ValueChangedEvent<TournamentBeatmap?> beatmap)
|
||||
{
|
||||
if (CurrentMatch.Value == null || CurrentMatch.Value.PicksBans.Count(p => p.Type == ChoiceType.Ban) < 2)
|
||||
if (CurrentMatch.Value?.Round.Value == null)
|
||||
return;
|
||||
|
||||
int totalBansRequired = CurrentMatch.Value.Round.Value.BanCount.Value * 2;
|
||||
|
||||
if (CurrentMatch.Value.PicksBans.Count(p => p.Type == ChoiceType.Ban) < totalBansRequired)
|
||||
return;
|
||||
|
||||
// if bans have already been placed, beatmap changes result in a selection being made automatically
|
||||
|
Loading…
Reference in New Issue
Block a user