mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 20:57:19 +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)
|
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;
|
return;
|
||||||
|
|
||||||
// if bans have already been placed, beatmap changes result in a selection being made automatically
|
// if bans have already been placed, beatmap changes result in a selection being made automatically
|
||||||
|
Loading…
x
Reference in New Issue
Block a user